public abstract class BaseHttpResponse extends Object implements HttpResponse
Modifier and Type | Class and Description |
---|---|
static class |
BaseHttpResponse.MaxSizeByteArrayOutputStream |
Modifier and Type | Field and Description |
---|---|
protected HTMLPageSourceDownloader |
downloader |
Constructor and Description |
---|
BaseHttpResponse(ExtendedHttpMethod httpMethod,
AbstractHttpRequestInterface<?> httpRequest,
PropertyExpansionContext context) |
Modifier and Type | Method and Description |
---|---|
Attachment[] |
getAttachments() |
Attachment[] |
getAttachmentsForPart(String partName) |
String |
getContentAsXml() |
String |
getContentType() |
String |
getHttpVersion() |
String |
getMethod() |
String |
getProperty(String name) |
String[] |
getPropertyNames() |
byte[] |
getRawRequestData() |
byte[] |
getRawResponseBody() |
byte[] |
getRawResponseData() |
AbstractHttpRequestInterface<?> |
getRequest() |
String |
getRequestContent() |
StringToStringsMap |
getRequestHeaders() |
StringToStringsMap |
getResponseHeaders() |
SSLInfo |
getSSLInfo() |
int |
getStatusCode() |
long |
getTimestamp() |
long |
getTimeTaken() |
URL |
getURL() |
protected void |
initHeaders(ExtendedHttpMethod httpMethod) |
protected void |
initHeadersForLoadTest(ExtendedHttpMethod httpMethod) |
void |
setProperty(String name,
String value) |
String |
toExternalForm(org.apache.http.Header header)
Returns a
String representation of the header. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setResponseContent
getContentAsString, getContentLength
protected HTMLPageSourceDownloader downloader
public BaseHttpResponse(ExtendedHttpMethod httpMethod, AbstractHttpRequestInterface<?> httpRequest, PropertyExpansionContext context)
protected void initHeaders(ExtendedHttpMethod httpMethod)
protected void initHeadersForLoadTest(ExtendedHttpMethod httpMethod)
public StringToStringsMap getRequestHeaders()
getRequestHeaders
in interface Response
public StringToStringsMap getResponseHeaders()
getResponseHeaders
in interface Response
public long getTimeTaken()
getTimeTaken
in interface Response
public SSLInfo getSSLInfo()
getSSLInfo
in interface HttpResponse
public long getTimestamp()
getTimestamp
in interface Response
public String getContentType()
getContentType
in interface TypedContent
public URL getURL()
getURL
in interface HttpResponse
public AbstractHttpRequestInterface<?> getRequest()
getRequest
in interface HttpResponse
getRequest
in interface Response
public int getStatusCode()
getStatusCode
in interface HttpResponse
public Attachment[] getAttachments()
getAttachments
in interface Response
public Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart
in interface Response
public byte[] getRawRequestData()
getRawRequestData
in interface Response
public byte[] getRawResponseData()
getRawResponseData
in interface Response
public byte[] getRawResponseBody()
public String getMethod()
getMethod
in interface HttpResponse
public String getHttpVersion()
getHttpVersion
in interface HttpResponse
public void setProperty(String name, String value)
setProperty
in interface Response
public String getProperty(String name)
getProperty
in interface Response
public String[] getPropertyNames()
getPropertyNames
in interface Response
public String getRequestContent()
getRequestContent
in interface Response
public String getContentAsXml()
getContentAsXml
in interface Response
Copyright © 2019. All Rights Reserved.