|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.web.util.resource.ServletLabelLocator
public class ServletLabelLocator
Used by Labels to load labels from a servlet context.
Constructor Summary | |
---|---|
ServletLabelLocator(javax.servlet.ServletContext ctx)
Constructs a locator where the properties file is decided by the library property called org.zkoss.util.label.web.location. |
|
ServletLabelLocator(javax.servlet.ServletContext ctx,
java.lang.String path)
Constructs a locator for the given path. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.net.URL |
locate(java.util.Locale locale)
Returns URL containing the labels for the specified locale, or null if not available. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServletLabelLocator(javax.servlet.ServletContext ctx)
public ServletLabelLocator(javax.servlet.ServletContext ctx, java.lang.String path)
path
- the path of the properties filefile://path
is supported (but not http://).Method Detail |
---|
public java.net.URL locate(java.util.Locale locale) throws java.io.IOException
LabelLocator
It must be thread-safe.
locate
in interface LabelLocator
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |