org.apache.shale.remoting.impl
Class WebResourceProcessor
java.lang.Object
org.apache.shale.remoting.impl.FilteringProcessor
org.apache.shale.remoting.impl.AbstractResourceProcessor
org.apache.shale.remoting.impl.WebResourceProcessor
- All Implemented Interfaces:
- Processor
public class WebResourceProcessor
- extends AbstractResourceProcessor
Implementation of Processor
which serves resources from the
web application's static resources. 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 |
WebResourceProcessor
public WebResourceProcessor()
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.