|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.dispatcher.ng.PrepareOperations
public class PrepareOperations
Contains preparation operations for a request before execution
Field Summary | |
---|---|
static String |
CLEANUP_RECURSION_COUNTER
|
Constructor Summary | |
---|---|
PrepareOperations(javax.servlet.ServletContext servletContext,
Dispatcher dispatcher)
|
Method Summary | |
---|---|
void |
assignDispatcherToThread()
Assigns the dispatcher to the dispatcher thread local |
void |
cleanupDispatcher()
Cleans up the dispatcher instance |
void |
cleanupRequest(javax.servlet.http.HttpServletRequest request)
Cleans up a request of thread locals |
ActionContext |
createActionContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the action context and initializes the thread local |
ActionMapping |
findActionMapping(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Finds and optionally creates an ActionMapping . |
ActionMapping |
findActionMapping(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean forceLookup)
Finds and optionally creates an ActionMapping . |
boolean |
isUrlExcluded(javax.servlet.http.HttpServletRequest request,
List<Pattern> excludedPatterns)
Check whether the request matches a list of exclude patterns. |
void |
setEncodingAndLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Sets the request encoding and locale on the response |
javax.servlet.http.HttpServletRequest |
wrapRequest(javax.servlet.http.HttpServletRequest oldRequest)
Wraps the request with the Struts wrapper that handles multipart requests better |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLEANUP_RECURSION_COUNTER
Constructor Detail |
---|
public PrepareOperations(javax.servlet.ServletContext servletContext, Dispatcher dispatcher)
Method Detail |
---|
public ActionContext createActionContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void cleanupRequest(javax.servlet.http.HttpServletRequest request)
public void assignDispatcherToThread()
public void setEncodingAndLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest oldRequest) throws javax.servlet.ServletException
javax.servlet.ServletException
public ActionMapping findActionMapping(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
ActionMapping
. It first looks in the current request to see if one
has already been found, otherwise, it creates it and stores it in the request. No mapping will be created in the
case of static resource requests or unidentifiable requests for other servlets, for example.
public ActionMapping findActionMapping(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean forceLookup)
ActionMapping
. if forceLookup is false, it first looks in the current request to see if one
has already been found, otherwise, it creates it and stores it in the request. No mapping will be created in the
case of static resource requests or unidentifiable requests for other servlets, for example.
forceLookup
- if true, the action mapping will be looked up from the ActionMapper instance, ignoring if there is one
in the request or notpublic void cleanupDispatcher()
public boolean isUrlExcluded(javax.servlet.http.HttpServletRequest request, List<Pattern> excludedPatterns)
request
- The request to check patterns againstexcludedPatterns
- list of patterns for exclusion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |