org.jboss.seam.web
Class AbstractResource
java.lang.Object
org.jboss.seam.web.AbstractResource
- Direct Known Subclasses:
- CaptchaImage, ConditionalAbstractResource
public abstract class AbstractResource
- extends java.lang.Object
Superclass of Seam components that serve up
"resources" to the client via the Seam
resource servlet. Note that since a filter is
potentially called outside of a set of Seam
contexts, it is not a true Seam component.
However, we are able to reuse the functionality
for component scanning, installation and
configuration for filters. All resources
must extend this class.
- Author:
- Shane Bryzak
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResource
public AbstractResource()
getServletContext
protected javax.servlet.ServletContext getServletContext()
setServletContext
public void setServletContext(javax.servlet.ServletContext context)
getResource
public abstract void getResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
getResourcePath
public abstract java.lang.String getResourcePath()
selectOutputStream
protected java.io.OutputStream selectOutputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
isCompressedMimeType
protected boolean isCompressedMimeType(java.lang.String mimeType)
isGzipEnabled
protected boolean isGzipEnabled()
Copyright © 2011 Seam Framework. All Rights Reserved.