Package org.apache.tiles.request.locale
Class URLApplicationResource
java.lang.Object
org.apache.tiles.request.locale.PostfixedApplicationResource
org.apache.tiles.request.locale.URLApplicationResource
- All Implemented Interfaces:
- ApplicationResource
A 
PostfixedApplicationResource that can be accessed through a URL.- 
Constructor SummaryConstructorsConstructorDescriptionURLApplicationResource(String localePath, URL url) Creates a URLApplicationResource for the specified path that can be accessed through the specified URL.URLApplicationResource(String path, Locale locale, URL url) Creates a URLApplicationResource for the specified path that can be accessed through the specified URL.
- 
Method SummaryModifier and TypeMethodDescriptionGet a java.io.InputStream to read the contents of this resource.longGet the last modification date for this resource.toString()Methods inherited from class org.apache.tiles.request.locale.PostfixedApplicationResourceequals, getLocale, getLocalePath, getLocalePath, getPath, hashCode
- 
Constructor Details- 
URLApplicationResourceCreates a URLApplicationResource for the specified path that can be accessed through the specified URL.- Parameters:
- localePath- the path including localization.
- url- the URL where the contents can be found.
 
- 
URLApplicationResourceCreates a URLApplicationResource for the specified path that can be accessed through the specified URL.- Parameters:
- path- the path excluding localization.
- locale- the Locale.
- url- the URL where the contents can be found.
 
 
- 
- 
Method Details- 
getInputStreamGet a java.io.InputStream to read the contents of this resource.- Returns:
- the InputStream.
- Throws:
- IOException- if the contents cannot be read.
 
- 
getLastModifiedGet the last modification date for this resource.- Returns:
- the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
- Throws:
- IOException- if the last modification date cannot be found.
 
- 
toString
 
-