public abstract class AbstractResponse<T extends Request> extends Object implements Response
Constructor and Description |
---|
AbstractResponse(T request) |
Modifier and Type | Method and Description |
---|---|
Attachment[] |
getAttachments() |
Attachment[] |
getAttachmentsForPart(String partName) |
String |
getContentAsXml() |
long |
getContentLength() |
String |
getProperty(String name) |
String[] |
getPropertyNames() |
byte[] |
getRawRequestData() |
byte[] |
getRawResponseData() |
T |
getRequest() |
StringToStringsMap |
getRequestHeaders() |
StringToStringsMap |
getResponseHeaders() |
void |
setProperty(String name,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestContent, getTimestamp, getTimeTaken
getContentAsString, getContentType
public AbstractResponse(T request)
public Attachment[] getAttachments()
getAttachments
in interface Response
public Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart
in interface Response
public long getContentLength()
getContentLength
in interface TypedContent
public String getProperty(String name)
getProperty
in interface Response
public String[] getPropertyNames()
getPropertyNames
in interface Response
public byte[] getRawRequestData()
getRawRequestData
in interface Response
public byte[] getRawResponseData()
getRawResponseData
in interface Response
public T getRequest()
getRequest
in interface Response
public String getContentAsXml()
getContentAsXml
in interface Response
public StringToStringsMap getRequestHeaders()
getRequestHeaders
in interface Response
public StringToStringsMap getResponseHeaders()
getResponseHeaders
in interface Response
public void setProperty(String name, String value)
setProperty
in interface Response
Copyright © 2019. All Rights Reserved.