|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.renderkit.html.util.DefaultResourceProvider
public class DefaultResourceProvider
A class which provide the resource using the standard class.getResource
lookup
stuff.
Constructor Summary | |
---|---|
DefaultResourceProvider(Class clazz)
|
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 |
protected URL |
getResource(String resource)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceProvider(Class clazz)
Method Detail |
---|
protected URL getResource(String resource)
public boolean exists(javax.servlet.ServletContext context, String resource)
ResourceProvider
exists
in interface ResourceProvider
public long getLastModified(javax.servlet.ServletContext context, String resource) throws IOException
ResourceProvider
getLastModified
in interface ResourceProvider
IOException
public int getContentLength(javax.servlet.ServletContext context, String resource) throws IOException
ResourceProvider
getContentLength
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 |