|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.util.ContentServlet
com.sas.servlet.util.StreamContentServlet
.
public class ContentServlet
The ContentServlet servlet is used to deliver arbitrary MIME type to HTTP clients. In order to deliver content back to the client, the ContentServlet requires that the following parameters be available on either the request or session object.
Parameter Name | Use | Required |
---|---|---|
src | specifies the value to prepended to parameter names below to uniquely identify the content request. Only used when passing parameters via the session object. | Yes |
type | specifies the MIME type of the content. Used as the parameter to the response.setContentType() method. | Yes |
contentDisposition | specifies the value to be used to set the Content-Disposition response header field. | No |
contentBytes | specifies the content to be streamed back to the user. | Yes |
In order to use the ContentServlet, you may need to register the servlet with the appilcation server that you are deploying on. Please refer to the Deploying AppDev Studio Web Applications on Specific Application Servers section of the document entitled Web Application Deployment Tips and Tricks for more information on how to register the ContentServlet.
Constructor Summary | |
---|---|
ContentServlet()
Deprecated. |
Method Summary | |
---|---|
java.lang.String |
getServletInfo()
Deprecated. |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. Writes the content bytes to the output stream |
Constructor Detail |
---|
public ContentServlet()
Method Detail |
---|
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
request
- the servlet request objectresponse
- the servlet response object
javax.servlet.ServletException
- if a servlet exception occurs
java.io.IOException
- if an I/O exception occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |