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  Stringrepresentation of the header. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetResponseContentgetContentAsString, getContentLengthprotected 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 Responsepublic StringToStringsMap getResponseHeaders()
getResponseHeaders in interface Responsepublic long getTimeTaken()
getTimeTaken in interface Responsepublic SSLInfo getSSLInfo()
getSSLInfo in interface HttpResponsepublic long getTimestamp()
getTimestamp in interface Responsepublic String getContentType()
getContentType in interface TypedContentpublic URL getURL()
getURL in interface HttpResponsepublic AbstractHttpRequestInterface<?> getRequest()
getRequest in interface HttpResponsegetRequest in interface Responsepublic int getStatusCode()
getStatusCode in interface HttpResponsepublic Attachment[] getAttachments()
getAttachments in interface Responsepublic Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart in interface Responsepublic byte[] getRawRequestData()
getRawRequestData in interface Responsepublic byte[] getRawResponseData()
getRawResponseData in interface Responsepublic byte[] getRawResponseBody()
public String getMethod()
getMethod in interface HttpResponsepublic String getHttpVersion()
getHttpVersion in interface HttpResponsepublic void setProperty(String name, String value)
setProperty in interface Responsepublic String getProperty(String name)
getProperty in interface Responsepublic String[] getPropertyNames()
getPropertyNames in interface Responsepublic String getRequestContent()
getRequestContent in interface Responsepublic String getContentAsXml()
getContentAsXml in interface ResponseCopyright © 2019. All Rights Reserved.