|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.wcm.javaee.ServletHelper
public abstract class ServletHelper
Helper methods for working with servlet objects in the WCM environment.
| Nested Class Summary | |
|---|---|
static class |
ServletHelper.ModeAndPath |
| Field Summary | |
|---|---|
protected static ILog |
s_log |
| Constructor Summary | |
|---|---|
ServletHelper() |
|
| Method Summary | |
|---|---|
static javax.servlet.http.Cookie |
getCookie(javax.servlet.ServletRequest request, java.lang.String cookieName)Retrieve the cookie |
static oracle.stellent.ridc.IdcContext |
getIdentity(javax.servlet.ServletRequest request)Retrieve the identity on this request |
static int |
getJspScope(java.lang.String name)Convert from the scope name to the int value |
static ServletHelper.ModeAndPath |
getModeAndPath(javax.servlet.http.HttpServletRequest request, java.lang.String path)Determine the mode from the current path |
static java.lang.String |
getOriginalRequestPath(javax.servlet.http.HttpServletRequest servletRequest)Retrieve the original request path (i.e. |
static java.util.Map<java.lang.String,java.lang.String> |
getParameterMap(javax.servlet.http.HttpServletRequest request)Obtain a mapping of parameter name to values from the given request. |
static java.lang.String |
getPreviewFromCookie(javax.servlet.ServletRequest request)Retrieve the designer mode from the cookie on the given request |
static java.lang.String |
getRequestPath(javax.servlet.http.HttpServletRequest servletRequest) |
static java.lang.String |
getServletContext(javax.servlet.http.HttpServletRequest request, boolean includeRequestContext)Retrieve the servlet context path when rendering a JSP; looks to see if this page was included by another web resource |
static void |
initializeApplication(javax.servlet.ServletConfig servletConfig)Initialize the application environment |
static void |
initializeApplication(javax.servlet.ServletContext servletContext)Deprecated. ServletContext doesn't have access to ServletConfig... it is the other way around |
static boolean |
isContributorModeFromCookie(javax.servlet.ServletRequest request)Retrieve the site mode from the cookie on the given request |
static boolean |
isDesignerFromCookie(javax.servlet.ServletRequest request)Retrieve the designer mode from the cookie on the given request |
static boolean |
isMultipartPost(javax.servlet.http.HttpServletRequest request)Determine if the request is a multipart post |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ILog s_log
| Constructor Detail |
|---|
public ServletHelper()
| Method Detail |
|---|
public static ServletHelper.ModeAndPath getModeAndPath(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
request - the http servlet requestpath - the pathpublic static int getJspScope(java.lang.String name)
name - the scope name (page, request, session or application)PageContext.PAGE_SCOPE if no match is madepublic static boolean isContributorModeFromCookie(javax.servlet.ServletRequest request)
request - the current requestpublic static boolean isDesignerFromCookie(javax.servlet.ServletRequest request)
request - the current requestpublic static java.lang.String getPreviewFromCookie(javax.servlet.ServletRequest request)
request - the current request
public static javax.servlet.http.Cookie getCookie(javax.servlet.ServletRequest request,
java.lang.String cookieName)
request - the requestcookieName - the name of the cookie
@Deprecated
public static void initializeApplication(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
servletContext - the servlet context to initializejavax.servlet.ServletException
public static void initializeApplication(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
servletConfig - the servlet context to initializejavax.servlet.ServletExceptionpublic static oracle.stellent.ridc.IdcContext getIdentity(javax.servlet.ServletRequest request)
request - the request to querypublic static java.lang.String getRequestPath(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest - the servlet requestpublic static java.lang.String getOriginalRequestPath(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest - the servlet requestpublic static java.util.Map<java.lang.String,java.lang.String> getParameterMap(javax.servlet.http.HttpServletRequest request)
request - the request
public static java.lang.String getServletContext(javax.servlet.http.HttpServletRequest request,
boolean includeRequestContext)
request - the servlet requestincludeRequestContext - true to include the request contextpublic static boolean isMultipartPost(javax.servlet.http.HttpServletRequest request)
request - the current request
|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||