public class BaseResponse extends Object implements Response
Constructor and Description |
---|
BaseResponse(Request request,
String responseContent,
String responseContentType) |
Modifier and Type | Method and Description |
---|---|
Attachment[] |
getAttachments() |
Attachment[] |
getAttachmentsForPart(String partName) |
String |
getContentAsString() |
String |
getContentAsXml() |
long |
getContentLength() |
String |
getContentType() |
String |
getProperty(String name) |
String[] |
getPropertyNames() |
byte[] |
getRawRequestData() |
byte[] |
getRawResponseData() |
Request |
getRequest() |
String |
getRequestContent() |
StringToStringsMap |
getRequestHeaders() |
StringToStringsMap |
getResponseHeaders() |
long |
getTimestamp() |
long |
getTimeTaken() |
void |
setProperty(String name,
String value) |
public Request getRequest()
getRequest
in interface Response
public String getRequestContent()
getRequestContent
in interface Response
public long getTimeTaken()
getTimeTaken
in interface Response
public Attachment[] getAttachments()
getAttachments
in interface Response
public Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart
in interface Response
public StringToStringsMap getRequestHeaders()
getRequestHeaders
in interface Response
public StringToStringsMap getResponseHeaders()
getResponseHeaders
in interface Response
public long getTimestamp()
getTimestamp
in interface Response
public byte[] getRawRequestData()
getRawRequestData
in interface Response
public byte[] getRawResponseData()
getRawResponseData
in interface Response
public String getContentAsXml()
getContentAsXml
in interface Response
public String getProperty(String name)
getProperty
in interface Response
public void setProperty(String name, String value)
setProperty
in interface Response
public String[] getPropertyNames()
getPropertyNames
in interface Response
public String getContentAsString()
getContentAsString
in interface TypedContent
public String getContentType()
getContentType
in interface TypedContent
public long getContentLength()
getContentLength
in interface TypedContent
Copyright © 2019. All Rights Reserved.