org.apache.shale.remoting.impl
Class ClassResourceProcessor
java.lang.Object
org.apache.shale.remoting.impl.FilteringProcessor
org.apache.shale.remoting.impl.AbstractResourceProcessor
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
).
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassResourceProcessor
public ClassResourceProcessor()
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 requestresourceId
- Resource identifier to translate
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.