|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.creamtec.ajaxswing.examples.AgentRequestFilterExample
public class AgentRequestFilterExample
Demonstrates the usage of AgentRequestFilter interface to intercept standard AjaxSwing "resize" action and to modify the generated HTML pages.
Constructor Summary | |
---|---|
AgentRequestFilterExample()
|
Method Summary | |
---|---|
void |
postEmulateAction(ClientAgent agent,
ActionData data)
Called after the action emulation is complete. |
void |
postProcessRequest(ClientAgent agent,
HttpResponseData responseData)
Overridden to modify the generated HTML page by adding the user IP address. |
java.lang.String |
postRenderWindows(ClientAgent agent,
java.util.List windows,
java.lang.String htmlCode)
Called after the given window is rendered as HTML page |
boolean |
preEmulateAction(ClientAgent agent,
ActionData data)
Called after the controls have been updated with the data but before the action is emulated. |
HttpResponseData |
preProcessRequest(ClientAgent agent)
Overridden to intercept "resize" action. |
void |
preRenderWindows(ClientAgent agent,
java.util.List windows)
Called before the given window is rendered as HTML page |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentRequestFilterExample()
Method Detail |
---|
public HttpResponseData preProcessRequest(ClientAgent agent)
preProcessRequest
in interface AgentRequestFilter
agent
- ClientAgent
public void postProcessRequest(ClientAgent agent, HttpResponseData responseData)
postProcessRequest
in interface AgentRequestFilter
agent
- ClientAgentresponseData
- HttpResponseDatapublic boolean preEmulateAction(ClientAgent agent, ActionData data)
preEmulateAction
in interface AgentRequestFilter
agent
- client agentdata
- contains the information about the action to be emulated
public void postEmulateAction(ClientAgent agent, ActionData data)
postEmulateAction
in interface AgentRequestFilter
agent
- client agentdata
- contains the information about the action to be emulatedpublic void preRenderWindows(ClientAgent agent, java.util.List windows)
preRenderWindows
in interface AgentRequestFilter
agent
- client agentwindows
- Window to be renderedpublic java.lang.String postRenderWindows(ClientAgent agent, java.util.List windows, java.lang.String htmlCode)
postRenderWindows
in interface AgentRequestFilter
agent
- client agentwindows
- Window that was renderedhtmlCode
- The HTML code for the page produced by AjaxSwing engine. Modifications
to the HTMLPage object associated with the client agent will not be reflected in the
generated HTML code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |