org.zkoss.web.util.resource
Class ServletLabelLocator

java.lang.Object
  extended by org.zkoss.web.util.resource.ServletLabelLocator
All Implemented Interfaces:
LabelLocator

public class ServletLabelLocator
extends java.lang.Object
implements LabelLocator

Used by Lables to load labels from a servlet context.

Author:
tomyeh

Constructor Summary
ServletLabelLocator(javax.servlet.ServletContext ctx)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.net.URL locate(java.util.Locale locale)
          Returns URL for the specified locale, or null if not available.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletLabelLocator

public ServletLabelLocator(javax.servlet.ServletContext ctx)
Method Detail

locate

public java.net.URL locate(java.util.Locale locale)
                    throws java.io.IOException
Description copied from interface: LabelLocator
Returns URL for the specified locale, or null if not available.

It must be thread-safe.

Specified by:
locate in interface LabelLocator
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo