|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQWebResponse
The AQWebResponse interface maintains the data returned from a successfully processed AQWebRequest
via the AQWebClient
interface.
getContentString()
- as a string getContentBytes()
- as an array of bytes getContent()
- as a java Object saveContent(String fileName)
method.
Method Summary | |
---|---|
String |
getAcceptRangesHeader()
Returns the value of the Accept-Ranges response header. |
String |
getAgeHeader()
Returns the value of the Age response header. |
String |
getAllowHeader()
Returns the value of the Allow entity header. |
String |
getCacheControlHeader()
Returns the value of the Cache-Control general header. |
String |
getConnectionHeader()
Returns the value of the Connection general header. |
Object |
getContent()
Returns the response body as an object. |
byte[] |
getContentBytes()
Returns the response body as an array of bytes. |
String |
getContentEncodingHeader()
Returns the value of the Content-Encoding entity header. |
String |
getContentLanguageHeader()
Returns the value of the Content-Language entity header. |
int |
getContentLengthHeader()
Returns the value of the Content-Length entity header. |
String |
getContentLocationHeader()
Returns the value of the Content-Location entity header. |
String |
getContentMD5Header()
Returns the value of the Content-MD5 entity header. |
String |
getContentRangeHeader()
Returns the value of the Content-Range entity header. |
String |
getContentString()
Returns the response body as a string. |
String |
getContentTypeHeader()
Returns the value of the Content-Type entity header. |
String |
getDateHeader()
Returns the value of the Date general header. |
String |
getETagHeader()
Returns the value of the ETag response header. |
String |
getExpiresHeader()
Returns the value of the Expires entity header. |
String |
getHeaderField(String name)
Returns the header value associated with the given header name. |
List<String> |
getHeaderFields(String name)
Returns the header values associated with the given header name. |
Map<String,List<String>> |
getHeaderMap()
Returns all of headers this response currently has. |
String |
getLastModifiedHeader()
Returns the value of the Last-Modified entity header. |
String |
getLocationHeader()
Returns the value of the Location response header. |
String |
getPragmaHeader()
Returns the value of the Pragma general header. |
String |
getProxyAuthenticateHeader()
Returns the value of the Proxy-Authenticate response header. |
AQWebRequest |
getRequest()
Returns the request object that produces this response. |
String |
getRetryAfterHeader()
Returns the value of the Retry-After response header. |
String |
getServerHeader()
Returns the value of the Server response header. |
int |
getStatusCode()
Returns the response status code. |
String |
getStatusLine()
Returns the response status line. |
String |
getStatusText()
Returns the response status text. |
String |
getTrailerHeader()
Returns the value of the Trailer general header. |
String |
getTransferEncodingHeader()
Returns the value of the Transfer-Encoding general header. |
String |
getUpgradeHeader()
Returns the value of the Upgrade general header. |
String |
getVaryHeader()
Returns the value of the Vary response header. |
String |
getViaHeader()
Returns the value of the Via general header. |
String |
getWarningHeader()
Returns the value of the Warning general header. |
String |
getWWWAuthenticateHeader()
Returns the value of the WWW-Authenticate response header. |
void |
saveContent(String fileName)
Saves the response body to a file. |
String |
toString(boolean showDetail)
Returns a string representation of this object. |
Method Detail |
---|
AQWebRequest getRequest()
int getStatusCode()
String getStatusText()
String getStatusLine()
Object getContent()
String getContentString()
byte[] getContentBytes()
void saveContent(String fileName) throws Exception
fileName
- the name of the file where response body to be saved
Exception
- if fileName is null or cannot be accessedMap<String,List<String>> getHeaderMap()
List<String> getHeaderFields(String name)
name
- the name of the header
String getHeaderField(String name)
name
- the name of the header
String getCacheControlHeader()
Cache-Control
general header.
Cache-Control
header is not definedString getConnectionHeader()
Connection
general header.
Connection
header is not definedString getDateHeader()
Date
general header.
Date
header is not definedString getPragmaHeader()
Pragma
general header.
Pragma
header is not definedString getTrailerHeader()
Trailer
general header.
Trailer
header is not definedString getTransferEncodingHeader()
Transfer-Encoding
general header.
Transfer-Encoding
header is not definedString getUpgradeHeader()
Upgrade
general header.
Upgrade
header is not definedString getViaHeader()
Via
general header.
Via
header is not definedString getWarningHeader()
Warning
general header.
Warning
header is not definedString getAllowHeader()
Allow
entity header.
Allow
header is not definedString getContentEncodingHeader()
Content-Encoding
entity header.
Content-Encoding
header is not definedString getContentLanguageHeader()
Content-Language
entity header.
Content-Language
header is not definedint getContentLengthHeader()
Content-Length
entity header.
Content-Length
header is not definedString getContentLocationHeader()
Content-Location
entity header.
Content-Location
header is not definedString getContentMD5Header()
Content-MD5
entity header.
Content-MD5
header is not definedString getContentRangeHeader()
Content-Range
entity header.
Content-Range
header is not definedString getContentTypeHeader()
Content-Type
entity header.
Content-Type
header is not definedString getExpiresHeader()
Expires
entity header.
Expires
header is not definedString getLastModifiedHeader()
Last-Modified
entity header.
Last-Modified
header is not definedString getAcceptRangesHeader()
Accept-Ranges
response header.
Accept-Ranges
header is not definedString getAgeHeader()
Age
response header.
Age
header is not definedString getETagHeader()
ETag
response header.
ETag
header is not definedString getLocationHeader()
Location
response header.
Location
header is not definedString getProxyAuthenticateHeader()
Proxy-Authenticate
response header.
Proxy-Authenticate
header is not definedString getRetryAfterHeader()
Retry-After
response header.
Retry-After
header is not definedString getServerHeader()
Server
response header.
Server
header is not definedString getVaryHeader()
Vary
response header.
Vary
header is not definedString getWWWAuthenticateHeader()
WWW-Authenticate
response header.
WWW-Authenticate
header is not definedString toString(boolean showDetail)
showDetail
- include response body content if set to true
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |