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: 673833 $ $Date: 2008-07-03 16:58:05 -0500 (Thu, 03 Jul 2008) $
Author:
imario (latest modification by $Author: skitching $)

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
 

Method Detail

exists

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


getContentLength

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

Throws:
IOException

getLastModified

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

Throws:
IOException

getInputStream

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

Throws:
IOException

getEncoding

String getEncoding(javax.servlet.ServletContext context,
                   String resource)
                   throws IOException
get resource encoding

Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.