|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceProvider
A class which can provide the resource itself
Method Summary | |
---|---|
boolean |
exists(javax.servlet.ServletContext context,
java.lang.String resource)
check if the resource exists |
int |
getContentLength(javax.servlet.ServletContext context,
java.lang.String resource)
get the content length of the resource |
java.lang.String |
getEncoding(javax.servlet.ServletContext context,
java.lang.String resource)
get resource encoding |
java.io.InputStream |
getInputStream(javax.servlet.ServletContext context,
java.lang.String resource)
get the input stream of the resource |
long |
getLastModified(javax.servlet.ServletContext context,
java.lang.String resource)
get the last modified time of the resource |
Method Detail |
---|
boolean exists(javax.servlet.ServletContext context, java.lang.String resource)
int getContentLength(javax.servlet.ServletContext context, java.lang.String resource) throws java.io.IOException
java.io.IOException
long getLastModified(javax.servlet.ServletContext context, java.lang.String resource) throws java.io.IOException
java.io.IOException
java.io.InputStream getInputStream(javax.servlet.ServletContext context, java.lang.String resource) throws java.io.IOException
java.io.IOException
java.lang.String getEncoding(javax.servlet.ServletContext context, java.lang.String resource) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |