|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.custom.stylesheet.TextResourceFilterProvider
public class TextResourceFilterProvider
Allow URLs to return data that is cached by the TextResourceFilter class.
This implements the Tomahawk ResourceProvider interface which works together with the Tomahawk AddResourceFactory, ExtensionsFilter and AddResource classes. The AddResourceFactory can generate a URL which can be embedded in an HTML page. When invoked, that URL triggers the ExtensionsFilter which invokes AddResource which then calls back into this class. And this class then retrieves the requested data from the TextResourceFilter.
Constructor Summary | |
---|---|
TextResourceFilterProvider()
|
Method Summary | |
---|---|
boolean |
exists(javax.servlet.ServletContext context,
String resource)
check if the resource exists |
int |
getContentLength(javax.servlet.ServletContext context,
String resource)
get the content length of the resource |
String |
getEncoding(javax.servlet.ServletContext context,
String resource)
get resource encoding |
InputStream |
getInputStream(javax.servlet.ServletContext context,
String resource)
get the input stream of the resource |
long |
getLastModified(javax.servlet.ServletContext context,
String resource)
get the last modified time of the resource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextResourceFilterProvider()
Method Detail |
---|
public boolean exists(javax.servlet.ServletContext context, String resource)
ResourceProvider
exists
in interface ResourceProvider
public int getContentLength(javax.servlet.ServletContext context, String resource) throws IOException
ResourceProvider
getContentLength
in interface ResourceProvider
IOException
public long getLastModified(javax.servlet.ServletContext context, String resource) throws IOException
ResourceProvider
getLastModified
in interface ResourceProvider
IOException
public InputStream getInputStream(javax.servlet.ServletContext context, String resource) throws IOException
ResourceProvider
getInputStream
in interface ResourceProvider
IOException
public String getEncoding(javax.servlet.ServletContext context, String resource) throws IOException
ResourceProvider
getEncoding
in interface ResourceProvider
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |