com.stellent.cis.web.servlets
Class SCSDynamicURLServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.stellent.cis.web.servlets.SCSBaseAuthenticatedServlet
              extended by com.stellent.cis.web.servlets.SCSDynamicURLServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SCSDynamicURLServlet
extends SCSBaseAuthenticatedServlet

Servlet that allows retrieval of dynamic content from the content server.

See Also:
Serialized Form

Field Summary
protected  ISCSFileAPI m_fileAPI
           
static java.lang.String PARAM_ENCODING
           
static java.lang.String PARAM_FILE_URL
           
static java.lang.String PARAM_PAGE_NUMBER
           
static java.lang.String PARAM_PAGE_NUMBER_DC
           
static java.lang.String PARAM_REWRITE_DISPLAY
           
static java.lang.String PARAM_URL_CONTEXT
           
static java.lang.String PARAM_VALIDATE_CONTENT
           
 
Fields inherited from class com.stellent.cis.web.servlets.SCSBaseAuthenticatedServlet
CONTEXT_PATH, GET_USER_PRINCIPAL_ENABLED, m_cisApplication, m_commandFacade, m_contextPath, m_defaultUser, m_getUserPrincipalEnabled, m_log, m_principalLookupAllowed, m_principalLookupName, m_principalLookupScope, PRINCIPAL_LOOKUP_ALLOWED, PRINCIPAL_LOOKUP_NAME, PRINCIPAL_LOOKUP_SCOPE, s_validScopes, USER_ATTRIBUTE
 
Constructor Summary
SCSDynamicURLServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Get the resource from the weblayouts directory.
protected  ISCSFileAPI getFileAPI()
           
protected  java.io.InputStream getFileStream(java.io.File file)
          Retrieve the inputstream from the given file path
protected  void handleDynamicServerResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String relativePath, java.lang.String adapterName, java.lang.String pageNumber)
           
protected  void sendStreamToClient(java.io.InputStream stream, java.io.OutputStream outputStream, boolean closeStreams)
           
 
Methods inherited from class com.stellent.cis.web.servlets.SCSBaseAuthenticatedServlet
getActiveApi, getCisApplication, getCommandFacade, getContext, getDefaultUser, getPrincipalLookupName, getPrincipalLookupScope, getUcpmApi, init, isEmpty, isGetUserPrincipalEnabled, isPrincipalLookupAllowed, lookupObject, setCisApplication, setDefaultUser, setGetUserPrincipalEnabled, setPrincipalLookupAllowed, setPrincipalLookupName, setPrincipalLookupScope
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, 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
 

Field Detail

PARAM_ENCODING

public static final java.lang.String PARAM_ENCODING
See Also:
Constant Field Values

PARAM_VALIDATE_CONTENT

public static final java.lang.String PARAM_VALIDATE_CONTENT
See Also:
Constant Field Values

PARAM_REWRITE_DISPLAY

public static final java.lang.String PARAM_REWRITE_DISPLAY
See Also:
Constant Field Values

PARAM_FILE_URL

public static final java.lang.String PARAM_FILE_URL
See Also:
Constant Field Values

PARAM_PAGE_NUMBER

public static final java.lang.String PARAM_PAGE_NUMBER
See Also:
Constant Field Values

PARAM_PAGE_NUMBER_DC

public static final java.lang.String PARAM_PAGE_NUMBER_DC
See Also:
Constant Field Values

PARAM_URL_CONTEXT

public static final java.lang.String PARAM_URL_CONTEXT
See Also:
Constant Field Values

m_fileAPI

protected ISCSFileAPI m_fileAPI
Constructor Detail

SCSDynamicURLServlet

public SCSDynamicURLServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Get the resource from the weblayouts directory.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request -
response -
Throws:
javax.servlet.ServletException
java.io.IOException

handleDynamicServerResource

protected void handleDynamicServerResource(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           java.lang.String relativePath,
                                           java.lang.String adapterName,
                                           java.lang.String pageNumber)
                                    throws java.io.IOException,
                                           javax.servlet.ServletException
Parameters:
request -
response -
relativePath -
Throws:
java.io.IOException
javax.servlet.ServletException

getFileStream

protected java.io.InputStream getFileStream(java.io.File file)
                                     throws java.io.IOException
Retrieve the inputstream from the given file path

Parameters:
file -
Returns:
Throws:
java.io.IOException

sendStreamToClient

protected void sendStreamToClient(java.io.InputStream stream,
                                  java.io.OutputStream outputStream,
                                  boolean closeStreams)
                           throws java.io.IOException
Parameters:
stream -
closeStreams -
Throws:
java.io.IOException

getFileAPI

protected ISCSFileAPI getFileAPI()
                          throws com.stellent.cis.support.bean.BeansException,
                                 CommandException,
                                 java.rmi.RemoteException
Returns:
Throws:
com.stellent.cis.support.bean.BeansException
CommandException
java.rmi.RemoteException