com.ibm.mm.viewer
Class CMBPageWriterServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.ibm.mm.viewer.CMBPageWriterServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class CMBPageWriterServlet
- extends javax.servlet.http.HttpServlet
CMBPageWriterServlet is an HTTP servlet for use in web-based applications.
It provides streaming of a CMBPage as the reply from the servlet.
This servlet takes its parameters through request attributes. Use
ServletRequest.setAttribute
to set attributes in the invoking
JSP or Servlet and then forward to this servlet.
The following attributes are understood:
- cmbPage
- Required. An instance of CMBPage for the page to be written.
Note: This value will be removed from the session by this servlet.
- resourceUrl
- Optional. A URL prefix to be inserted into the generated page for all external
resources on the page. The resource identifier is added to the end
of this prefix to form the URL to use in retrieving the resource.
- resourceId
- Optional. An identifier for the resource to be retrieved if the call to this
servlet is for a page resource.
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a POST request, in the same manner as a GET request. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMBPageWriterServlet
public CMBPageWriterServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Handles a GET request. See description of class for how to invoke.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Handles a POST request, in the same manner as a GET request.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.