|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BroadleafWebRequestProcessor
Generic interface that should be used for processing requests from Servlet Filters, Spring interceptors or Portlet
filters. Note that the actual type of the request passed in should be something that extends NativeWebRequest.
Example usage by a Servlet Filter:
public class SomeServletFilter extends GenericFilterBean {
@Resource(name="blCustomerStateRequestProcessor")
protected BroadleafWebRequestProcessor processor;
public void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) {
processor.process(new ServletWebRequest(request, response));
}
}
Also note that you should always instantiate the WebRequest with as much information available. In the above
example, this means using both the HttpServletRequest and HttpServletResponse when instantiating the
ServletWebRequest
NativeWebRequest},
ServletWebRequest},
org.springframework.web.portlet.context.PortletWebRequest},
BroadleafRequestFilter}| Method Summary | |
|---|---|
void |
process(org.springframework.web.context.request.WebRequest request)
Process the current request. |
| Method Detail |
|---|
void process(org.springframework.web.context.request.WebRequest request)
request -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||