|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.webscarab.plugin.proxy.ScriptableConnection
public class ScriptableConnection
This is a scriptable object, which represents a connection from a browser, the request that the browser submits, and the response that is returned.
Constructor Summary | |
---|---|
ScriptableConnection(java.net.Socket socket)
Creates a new instance of Connection |
Method Summary | |
---|---|
void |
closeConnection()
closes the connection to the browser |
java.net.InetAddress |
getAddress()
This is the address of the remote host that is connected. |
Request |
getRequest()
Can be called by a script to get the request that will be sent to the server |
Response |
getResponse()
Gets the Response that was returned by the server |
void |
setRequest(Request request)
Sets the Request object that will be sent to the server. |
void |
setResponse(Response response)
Sets the Response that will be sent back to the browser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptableConnection(java.net.Socket socket)
Method Detail |
---|
public java.net.InetAddress getAddress()
public void closeConnection()
public void setRequest(Request request)
request
- The request that should be sent to the serverpublic Request getRequest()
public void setResponse(Response response)
response
- the response to send back to the browserpublic Response getResponse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |