|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcreamtec.webcream.examples.AgentRequestFilterExample
public class AgentRequestFilterExample
Demonstrates the usage of AgentRequestFilter interface to intercept standard WebCream "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 |
postRenderWindow(ClientAgent agent,
java.awt.Window window,
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 |
preRenderWindow(ClientAgent agent,
java.awt.Window window)
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 AgentRequestFilteragent - ClientAgent
public void postProcessRequest(ClientAgent agent,
HttpResponseData responseData)
postProcessRequest in interface AgentRequestFilteragent - ClientAgentresponseData - HttpResponseData
public boolean preEmulateAction(ClientAgent agent,
ActionData data)
preEmulateAction in interface AgentRequestFilteragent - client agentdata - contains the information about the action to be emulated
public void postEmulateAction(ClientAgent agent,
ActionData data)
postEmulateAction in interface AgentRequestFilteragent - client agentdata - contains the information about the action to be emulated
public void preRenderWindow(ClientAgent agent,
java.awt.Window window)
preRenderWindow in interface AgentRequestFilteragent - client agentwindow - Window to be rendered
public java.lang.String postRenderWindow(ClientAgent agent,
java.awt.Window window,
java.lang.String htmlCode)
postRenderWindow in interface AgentRequestFilteragent - client agentwindow - Window that was renderedhtmlCode - The HTML code for the page produced by WebCream 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 | |||||||||