|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
waggle.core.http.XHTTPMethod
public final class XHTTPMethod
Execute an HTTP method.
| Method Summary | |
|---|---|
void |
abort()Abort a request. |
void |
close()Close the current request. |
XHTTPStatus |
get(String queryString)Get with the specified query string. |
XHTTPStatus |
get(String queryString, List<XHTTPHeader> headers)Get with the specified query string. |
byte[] |
getResponseBody()Read the response body as a byte array. |
InputStream |
getResponseBodyAsStream()Read the response body as an InputStream. |
String |
getResponseBodyAsString()Read the response body as a String. |
String |
getResponseContentEncoding()Get the response content encoding. |
int |
getResponseContentLength()Get the response content length. |
String |
getResponseContentType()Get the response content type. |
String |
getResponseHeader(String name)Get a response header. |
XHTTPStatus |
post(List<XHTTPHeader> headers, InputStream inputStream, String mimeType, String queryString)Post an InputStream. |
XHTTPStatus |
post(List<XHTTPHeader> headers, List<XHTTPPart> partValues)Post some parts. |
XHTTPStatus |
post(List<XHTTPHeader> headers, String content, String mimeType)Post a String. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void abort()
public XHTTPStatus post(List<XHTTPHeader> headers,
List<XHTTPPart> partValues)
headers - Any headers or null.partValues - Any parts.
public XHTTPStatus post(List<XHTTPHeader> headers,
InputStream inputStream,
String mimeType,
String queryString)
headers - Any headers or null.inputStream - The Body as an InputStream.mimeType - The Body mime type.queryString - Any query string.
public XHTTPStatus post(List<XHTTPHeader> headers,
String content,
String mimeType)
headers - Any headers.content - The content to post.mimeType - The content mime type.public XHTTPStatus get(String queryString)
queryString - The query string.
public XHTTPStatus get(String queryString,
List<XHTTPHeader> headers)
queryString - The query string.headers - Any headers or null.public void close()
public int getResponseContentLength()
public String getResponseContentType()
public String getResponseContentEncoding()
public String getResponseHeader(String name)
name - The header name.
public byte[] getResponseBody()
throws IOException
IOException - IO problems.public InputStream getResponseBodyAsStream()
public String getResponseBodyAsString()
|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||