|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.locale.PostfixedApplicationResource
public abstract class PostfixedApplicationResource
An ApplicationResource whose localization is managed by postfixing the file name. The various localizations are file sitting next to each other, with the locale identified in the postfix. For instance:
/WEB-INF/tiles.xml /WEB-INF/tiles_fr.xml /WEB-INF/tiles_it.xml /WEB-INF/tiles_it_IT.xmlTwo PostfixedApplicationResources are equals if they share the same localized path and the same class.
Constructor Summary | |
---|---|
protected |
PostfixedApplicationResource(String localePath)
Create a new PostfixedApplicationResource for the specified path. |
protected |
PostfixedApplicationResource(String path,
Locale locale)
Create a new PostfixedApplicationResource for the specified path. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Locale |
getLocale()
Get the Locale for this resource. |
String |
getLocalePath()
Get the path name for this resource. |
String |
getLocalePath(Locale newLocale)
Get the path name of another version of the resource. |
String |
getPath()
Get the path name for this resource. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tiles.request.ApplicationResource |
---|
getInputStream, getLastModified |
Constructor Detail |
---|
protected PostfixedApplicationResource(String localePath)
localePath
- the path including localization.protected PostfixedApplicationResource(String path, Locale locale)
path
- the path excluding localization.locale
- the Locale.Method Detail |
---|
public final String getLocalePath()
getResource
.
getLocalePath
in interface ApplicationResource
public final String getPath()
getPath
in interface ApplicationResource
public final String getLocalePath(Locale newLocale)
getLocalePath
in interface ApplicationResource
newLocale
- the Locale for the new version.
public final Locale getLocale()
getLocale
in interface ApplicationResource
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |