org.jboss.seam.web
Class AbstractResource
java.lang.Object
org.jboss.seam.web.AbstractResource
- Direct Known Subclasses:
- CaptchaImage, ConditionalAbstractResource
public abstract class AbstractResource
- extends 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,
IOException
- Throws:
javax.servlet.ServletException
IOException
getResourcePath
public abstract String getResourcePath()
selectOutputStream
protected OutputStream selectOutputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
isCompressedMimeType
protected boolean isCompressedMimeType(String mimeType)
isGzipEnabled
protected boolean isGzipEnabled()