|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ResourceStream interface is implemented by classes used by the ResourceServerServlet. An implementing class' job is to return an InputStream to a resource that the servlet will serve, and also optionally report its content type.
Method Summary | |
java.lang.String |
getContentType(java.lang.String inRequestedResource,
java.lang.String inParam1,
java.lang.String inParam2,
javax.servlet.ServletContext inServletContext)
getContentType() can be used to return the value that will be set as the response' contentType header. |
java.io.InputStream |
getStream(java.lang.String inRequestedResource,
java.lang.String inParam1,
java.lang.String inParam2,
javax.servlet.ServletContext inServletContext)
getStream() is the method that returns the InputStream to the resource to to be served. |
Method Detail |
public java.io.InputStream getStream(java.lang.String inRequestedResource, java.lang.String inParam1, java.lang.String inParam2, javax.servlet.ServletContext inServletContext)
inRequestedResource
- This is the resource that is being requested.
This might be a URL, a file system path, or a
database identifier, whatever is appropriate
to the source of the resource.inParam1
- First arbitrary parameter from web.xml.inParam2
- Second arbitrary parameter from web.xml.inServletContext
- The ServletContext of the calling
ResourceServerServlet.
public java.lang.String getContentType(java.lang.String inRequestedResource, java.lang.String inParam1, java.lang.String inParam2, javax.servlet.ServletContext inServletContext)
inRequestedResource
- This is the resource that is being requested.
This might be a URL, a file system path, or a
database identifier, whatever is appropriate
to the source of the resource.inParam1
- First arbitrary parameter from web.xml.inParam2
- Second arbitrary parameter from web.xml.inServletContext
- The ServletContext of the calling
ResourceServerServlet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |