public abstract class PostfixedApplicationResource extends Object implements ApplicationResource
/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.
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getInputStream, getLastModified
protected PostfixedApplicationResource(String localePath)
localePath
- the path including localization.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
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.