|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.struts.adapter.framework.InternalUtils
public class InternalUtils
Field Summary | |
---|---|
static String |
ATTR_PREFIX |
Constructor Summary | |
---|---|
InternalUtils() |
Method Summary | |
---|---|
static String |
getActionMappingUrl(String action, javax.servlet.jsp.PageContext pageContext) |
static ActionServlet |
getActionServlet(javax.servlet.ServletContext context) Get the current ActionServlet. |
static ActionForm |
getCurrentActionForm(javax.servlet.ServletRequest request) |
static ActionMapping |
getCurrentActionMapping(javax.servlet.ServletRequest request) |
static String |
getDecodedServletPath(javax.servlet.http.HttpServletRequest request) |
static javax.servlet.http.HttpSession |
getHttpSession(javax.servlet.ServletRequest request, boolean create) |
static String |
getModuleName(String relativePath, javax.servlet.ServletContext context) |
static String |
getModulePathForRelativeURI(String uri) Get the Struts module path for a URI that is relative to the web application root. |
static javax.servlet.ServletContext |
getServletContext(javax.servlet.ServletRequest req) |
static boolean |
ignoreIncludeServletPath(javax.servlet.ServletRequest request) |
static ModuleConfig |
selectModule(String prefix, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext) Set the given Struts module in the request, and expose its set of MessageResources as request attributes. |
static void |
setIgnoreIncludeServletPath(javax.servlet.ServletRequest request, boolean ignore) Tell getDecodedServletPath(javax.servlet.http.HttpServletRequest) (and all that call it) to ignore the attribute that specifies the Servlet Include path, which is set when a Servlet include is done through RequestDispatcher. |
static void |
setServletContext(javax.servlet.ServletRequest request, javax.servlet.ServletContext servletContext) |
static javax.servlet.ServletRequest |
unwrapMultipart(javax.servlet.ServletRequest request) If the given request is a MultipartRequestWrapper (Struts class that doesn't extend HttpServletRequestWrapper), return the wrapped request; otherwise, return the given request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTR_PREFIX
Constructor Detail |
---|
public InternalUtils()
Method Detail |
---|
public static String getDecodedServletPath(javax.servlet.http.HttpServletRequest request)
public static void setIgnoreIncludeServletPath(javax.servlet.ServletRequest request, boolean ignore)
getDecodedServletPath(javax.servlet.http.HttpServletRequest)
(and all that call it) to ignore the attribute that specifies the Servlet Include path, which is set when a Servlet include is done through RequestDispatcher. Normally, getDecodedServletPath tries the Servlet Include path before falling back to getServletPath() on the request. Note that this is basically a stack of instructions to ignore the include path, and this method expects each call with ignore
==true
to be balanced by a call with ignore
==false
.request
- the current requestignore
- whether or not to ignore or notpublic static boolean ignoreIncludeServletPath(javax.servlet.ServletRequest request)
public static ModuleConfig selectModule(String prefix, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
prefix
- the prefix of the desired module.request
- the current HttpServletRequest.servletContext
- the current ServletContext.null
if there is none for the given module prefix.public static ActionMapping getCurrentActionMapping(javax.servlet.ServletRequest request)
public static ActionForm getCurrentActionForm(javax.servlet.ServletRequest request)
public static javax.servlet.http.HttpSession getHttpSession(javax.servlet.ServletRequest request, boolean create)
public static void setServletContext(javax.servlet.ServletRequest request, javax.servlet.ServletContext servletContext)
public static javax.servlet.ServletContext getServletContext(javax.servlet.ServletRequest req)
public static javax.servlet.ServletRequest unwrapMultipart(javax.servlet.ServletRequest request)
request
- the current requestpublic static String getModulePathForRelativeURI(String uri)
uri
- the URI for which to get the module path.public static ActionServlet getActionServlet(javax.servlet.ServletContext context)
context
- the current ServletContextpublic static String getActionMappingUrl(String action, javax.servlet.jsp.PageContext pageContext)
public static String getModuleName(String relativePath, javax.servlet.ServletContext context)
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.