public class ServletLabelLocator extends java.lang.Object implements LabelLocator
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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://).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
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.