public final class RecordedRequest extends Object
| Constructor and Description |
|---|
RecordedRequest(String requestLine,
List<String> headers,
List<Integer> chunkSizes,
long bodySize,
byte[] body,
int sequenceNumber,
Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody()
Returns the body of this POST request.
|
long |
getBodySize()
Returns the total size of the body of this POST request (before
truncation).
|
List<Integer> |
getChunkSizes()
Returns the sizes of the chunks of this request's body, or an empty list
if the request's body was empty or unchunked.
|
String |
getHeader(String name)
Returns the first header named
name, or null if no such header
exists. |
List<String> |
getHeaders()
Returns all headers.
|
List<String> |
getHeaders(String name)
Returns the headers named
name. |
String |
getMethod() |
String |
getPath() |
String |
getRequestLine() |
int |
getSequenceNumber()
Returns the index of this request on its HTTP connection.
|
String |
getSslProtocol()
Returns the connection's SSL protocol like
TLSv1, SSLv3,
NONE or null if the connection doesn't use SSL. |
String |
getUtf8Body()
Returns the body of this POST request decoded as a UTF-8 string.
|
String |
toString() |
public String getRequestLine()
public String getMethod()
public String getPath()
public String getHeader(String name)
name, or null if no such header
exists.public List<Integer> getChunkSizes()
public long getBodySize()
public byte[] getBody()
public String getUtf8Body()
public int getSequenceNumber()
public String getSslProtocol()
TLSv1, SSLv3,
NONE or null if the connection doesn't use SSL.Copyright © 2014. All Rights Reserved.