Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » dispatcher » ng » [javadoc | source]
org.apache.struts2.dispatcher.ng
public class: PrepareOperations [javadoc | source]
java.lang.Object
   org.apache.struts2.dispatcher.ng.PrepareOperations
Contains preparation operations for a request before execution
Field Summary
public static final  String CLEANUP_RECURSION_COUNTER     
Constructor:
 public PrepareOperations(ServletContext servletContext,
    Dispatcher dispatcher) 
Method from org.apache.struts2.dispatcher.ng.PrepareOperations Summary:
assignDispatcherToThread,   cleanupDispatcher,   cleanupRequest,   createActionContext,   findActionMapping,   findActionMapping,   isUrlExcluded,   setEncodingAndLocale,   wrapRequest
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.dispatcher.ng.PrepareOperations Detail:
 public  void assignDispatcherToThread() 
    Assigns the dispatcher to the dispatcher thread local
 public  void cleanupDispatcher() 
    Cleans up the dispatcher instance
 public  void cleanupRequest(HttpServletRequest request) 
    Cleans up a request of thread locals
 public ActionContext createActionContext(HttpServletRequest request,
    HttpServletResponse response) 
    Creates the action context and initializes the thread local
 public ActionMapping findActionMapping(HttpServletRequest request,
    HttpServletResponse response) 
    Finds and optionally creates an 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(HttpServletRequest request,
    HttpServletResponse response,
    boolean forceLookup) 
    Finds and optionally creates an 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.
 public boolean isUrlExcluded(HttpServletRequest request,
    List<Pattern> excludedPatterns) 
    Check whether the request matches a list of exclude patterns.
 public  void setEncodingAndLocale(HttpServletRequest request,
    HttpServletResponse response) 
    Sets the request encoding and locale on the response
 public HttpServletRequest wrapRequest(HttpServletRequest oldRequest) throws ServletException 
    Wraps the request with the Struts wrapper that handles multipart requests better