|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.creamtec.ajaxswing.examples.RouterRequestFilterExample
public class RouterRequestFilterExample
Demonstrates an implementation of RouterRequestFilter interface. See documentation for more information.
Constructor Summary | |
---|---|
RouterRequestFilterExample()
|
Method Summary | |
---|---|
boolean |
postProcessRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AppDesc appDesc,
ClientAgentRemote agent,
HttpRequestData requestData)
Called when a new HTTP request is received by the router after the AjaxSwing related information has been extracted from the request and the appropriate client agent located. |
boolean |
preProcessRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called when a new HTTP request is received by the router before any processing has been done. |
boolean |
processResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AppDesc appDesc,
ClientAgentRemote agent,
HttpRequestData requestData,
HttpResponseData responseData)
Called when the client agent has finished processing the request and has returned a page. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RouterRequestFilterExample()
Method Detail |
---|
public boolean preProcessRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RouterRequestFilter
preProcessRequest
in interface RouterRequestFilter
request
- HttpServletRequestresponse
- HttpServletResponse
public boolean postProcessRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AppDesc appDesc, ClientAgentRemote agent, HttpRequestData requestData) throws java.lang.Exception
RouterRequestFilter
postProcessRequest
in interface RouterRequestFilter
request
- HttpServletRequestresponse
- HttpServletResponseappDesc
- Application descriptor used by AjaxSwing to maintain the application informationagent
- Client agent associated with the request. Can be in the same JVM or in a different JVM.requestData
- Request data that is going to be sent to the client agent.
java.lang.Exception
- on errorpublic boolean processResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AppDesc appDesc, ClientAgentRemote agent, HttpRequestData requestData, HttpResponseData responseData) throws java.lang.Exception
RouterRequestFilter
processResponse
in interface RouterRequestFilter
request
- HttpServletRequestresponse
- HttpServletResponseappDesc
- AppDescagent
- ClientAgentRemoterequestData
- HttpRequestDataresponseData
- HttpResponseData
java.lang.Exception
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |