org.apache.myfaces.renderkit.html.util
Interface ResourceProvider

All Known Implementing Classes:
DefaultResourceProvider, TextResourceFilterProvider

public interface ResourceProvider

A class which can provide the resource itself

Version:
$Revision: 499391 $ $Date: 2007-01-24 14:11:53 +0100 (Mi, 24 Jän 2007) $
Author:
imario (latest modification by $Author: imario $)

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

exists

public boolean exists(javax.servlet.ServletContext context,
                      java.lang.String resource)
check if the resource exists


getContentLength

public int getContentLength(javax.servlet.ServletContext context,
                            java.lang.String resource)
                     throws java.io.IOException
get the content length of the resource

Throws:
java.io.IOException

getLastModified

public long getLastModified(javax.servlet.ServletContext context,
                            java.lang.String resource)
                     throws java.io.IOException
get the last modified time of the resource

Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream(javax.servlet.ServletContext context,
                                          java.lang.String resource)
                                   throws java.io.IOException
get the input stream of the resource

Throws:
java.io.IOException

getEncoding

public java.lang.String getEncoding(javax.servlet.ServletContext context,
                                    java.lang.String resource)
                             throws java.io.IOException
get resource encoding

Throws:
java.io.IOException


Copyright © 2007 Apache Software Foundation. All Rights Reserved.