|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bitmechanic.maxq.generator.Interchange
public class Interchange
Describes browser / application interchange composed of one request and it's response.
Caveats: at this point, only few request headers are handled, response headers are not handled at all, request / repsonse cookies are not handled, and upload parameters are not processed correctly.
Character encodings: all byte -> String conversions are using platform default encoding. This is going to work in the following situations:
-Dfile.encoding=UTF-8
if your OS is using something different.
Constructor Summary | |
---|---|
Interchange(Config config,
Interchange previous)
Creates a new Interaction instance. |
Method Summary | |
---|---|
java.util.Map |
getAllParameters()
Returns the allParamters. |
java.lang.String |
getBaseUrl()
Returns the base url. |
java.lang.String |
getContentType()
Returns the contentType. |
java.util.Map |
getGetParameters()
Returns the getParameters. |
java.lang.String |
getMethod()
Returns the method. |
java.util.Map |
getPostParameters()
Returns the postParameters. |
Interchange |
getPrevious()
Returns the previous. |
java.util.Map |
getRequestCookies()
Returns the requestCookies. |
java.util.Map |
getRequestHeaders()
Returns the requestHeaders. |
java.lang.String |
getResponseBody()
Returns the responseBody. |
java.util.Map |
getResponseCookies()
Returns the responseCookies. |
java.util.Map |
getResponseHeaders()
Returns the responseHeaders. |
java.lang.String |
getStatusCode()
Returns the statusCode. |
java.util.Map |
getUploadParamters()
Returns the uploadParamters. |
java.lang.String |
getUrl()
Returns the url. |
boolean |
isIgnored()
Returns the ignored. |
void |
processRequest(HttpRequestHeader header,
byte[] body)
Capture the request data. |
void |
processResposne(HttpRequestHeader header,
byte[] body)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Interchange(Config config, Interchange previous)
previous
- the previous interaction.Method Detail |
---|
public Interchange getPrevious()
public boolean isIgnored()
public java.lang.String getBaseUrl()
public java.lang.String getUrl()
public java.lang.String getMethod()
public java.util.Map getRequestHeaders()
public java.util.Map getRequestCookies()
public java.util.Map getGetParameters()
public java.util.Map getPostParameters()
public java.util.Map getAllParameters()
public java.util.Map getUploadParamters()
public java.lang.String getStatusCode()
public java.lang.String getContentType()
public java.lang.String getResponseBody()
public java.util.Map getResponseHeaders()
public java.util.Map getResponseCookies()
public void processRequest(HttpRequestHeader header, byte[] body)
header
- request header.body
- request body.public void processResposne(HttpRequestHeader header, byte[] body)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |