com.filenet.wcm.apps.server.servlet
Class WcmISGetContentServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.filenet.wcm.apps.server.servlet.WcmISGetContentServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class WcmISGetContentServlet
- extends javax.servlet.http.HttpServlet
WcmISGetContentServlet is a servlet for retrieving object content from IS server.
Servlet Configuration in WEB-INF/web.xml:
<servlet>
<servlet-name>getISContent</servlet-name>
<servlet-class>com.filenet.wcm.apps.server.servlet.WcmISGetContentServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>getISContent</servlet-name>
<url-pattern>/getISContent/*</url-pattern>
</servlet-mapping>
Supported URL Syntax:
- URL - takes 3 required query string parameters, libraryName, id, and objectType,
and the 2 optional parameters pageNumber and ignoreRedirect. Currently the only objectType supported is "document".
If pageNumber is not specified, all pages of the specified document will be retrieved.
If ignoreRedirect is not specified, or if it is specified and set to false, then the redirection will take plase.
Examples:
- http://[server]/[app]/getISContent?libraryName=[domain:organization]&objectType=document&id=[doc id]
- http://[server]/[app]/getISContent?libraryName=[domain:organization]&objectType=document&id=[doc id]&pageNumber=[page number]&ignoreRedirect=[ignore redirect flag]
Default Behaviors:
The default behavior of the getContent servlet can be controlled or overwritten by adding or overwritting a mimetype entry
in the content_redir.properties file under the web application's WEB-INF directory.
If an entry is found, it takes precedence over the following built-in default behaviors and rediects as specified.
- Document
If the document has content, then the content is returned.
If the document has no content, an error is reported.
- See Also:
- Serialized Form
Field Summary |
protected static javax.servlet.ServletContext |
application
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the HTTP Get request. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the HTTP Post request. |
static java.lang.String |
getTokenFromCurrentSession(com.filenet.wcm.toolkit.server.util.WcmServerCredentials cred,
com.filenet.wcm.toolkit.server.base.WcmController controller)
|
void |
init(javax.servlet.ServletConfig config)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
application
protected static javax.servlet.ServletContext application
WcmISGetContentServlet
public WcmISGetContentServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Process the HTTP Get request.
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Process the HTTP Post request.
- Throws:
javax.servlet.ServletException
java.io.IOException
getTokenFromCurrentSession
public static java.lang.String getTokenFromCurrentSession(com.filenet.wcm.toolkit.server.util.WcmServerCredentials cred,
com.filenet.wcm.toolkit.server.base.WcmController controller)
throws java.lang.Exception
- Throws:
java.lang.Exception
© Copyright IBM Corp. 2002, 2007. All Rights Reserved.