Skip navigation links
com.stellent.cis.web.servlets
Class SCSDynamicURLServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.stellent.cis.web.servlets.SCSBaseAuthenticatedServlet
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
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 |
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 |
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
SCSDynamicURLServlet
public SCSDynamicURLServlet()
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 CommandException
-
- Returns:
- Throws:
CommandException
Skip navigation links
Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.