org.apache.shale.remoting.impl
Class ClassResourceProcessor

java.lang.Object
  extended by org.apache.shale.remoting.impl.FilteringProcessor
      extended by org.apache.shale.remoting.impl.AbstractResourceProcessor
          extended by org.apache.shale.remoting.impl.ClassResourceProcessor
All Implemented Interfaces:
Processor

public class ClassResourceProcessor
extends AbstractResourceProcessor

Implementation of Processor which serves resources from the class path of the web application. View identifiers shoud be a fully qualified path, beginning with a slash ("/") character (for example, /org/apache/shale/remoting/MyResource.css).


Field Summary
 
Fields inherited from class org.apache.shale.remoting.impl.AbstractResourceProcessor
mimeTypes
 
Constructor Summary
ClassResourceProcessor()
           
 
Method Summary
protected  URL getResourceURL(javax.faces.context.FacesContext context, String resourceId)
          

Convert the specified resource identifier into a URL, if the resource actually exists.

 void setExcludes(String excludes)
          Force our default excludes list to be included.
 
Methods inherited from class org.apache.shale.remoting.impl.AbstractResourceProcessor
copyStream, getBufferSize, getLastModified, getLastModifiedString, httpTimestamp, httpTimestamp, ifModifiedSince, inputStream, mimeType, outputStream, process, sendContentType, sendLastModified, sendNotFound, sendNotModified, servletRequest, setBufferSize, setLastModified
 
Methods inherited from class org.apache.shale.remoting.impl.FilteringProcessor
accept, getExcludes, getIncludes, setIncludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassResourceProcessor

public ClassResourceProcessor()
Method Detail

setExcludes

public void setExcludes(String excludes)

Force our default excludes list to be included.

Overrides:
setExcludes in class FilteringProcessor
Parameters:
excludes - Application specified excludes list

getResourceURL

protected URL getResourceURL(javax.faces.context.FacesContext context,
                             String resourceId)

Convert the specified resource identifier into a URL, if the resource actually exists. Otherwise, return null.

Specified by:
getResourceURL in class AbstractResourceProcessor
Parameters:
context - FacesContext for the current request
resourceId - Resource identifier to translate


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.