org.zkoss.web.util.resource
Class ServletLabelLocator
java.lang.Object
org.zkoss.web.util.resource.ServletLabelLocator
- All Implemented Interfaces:
- org.zkoss.util.resource.LabelLocator
public class ServletLabelLocator
- extends Object
- implements org.zkoss.util.resource.LabelLocator
Used by Labels to load labels from a servlet context.
- Author:
- tomyeh
|
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,
String path)
Constructs a locator for the given path. |
ServletLabelLocator
public 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.
If not defined, /WEB-INF/zk-label.properties is assumed
ServletLabelLocator
public ServletLabelLocator(javax.servlet.ServletContext ctx,
String path)
- Constructs a locator for the given path.
- Parameters:
path - the path of the properties file
Notice that file://path is supported (but not http://).- Since:
- 5.0.7
locate
public URL locate(Locale locale)
throws IOException
- Specified by:
locate in interface org.zkoss.util.resource.LabelLocator
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015. All rights reserved.