|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of data interface (e.g., JSONParser or org.xml.sax.Parser) that will be reported
as the result of the HTTP request.public interface HttpRequestor<T>
Interface to execute HTTP requests. To support asynchronous requests all results are reported via callbacks.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.novell.sentinel.client.http.HttpRequestMethod |
---|
HttpRequestMethod.HttpMethod |
Method Summary | |
---|---|
String |
getLocaleName()
Get the name of the locale that will be used to create an HTTP "Accept-Language" header, if any. |
void |
octetRequest(HttpRequestMethod.HttpMethod method,
String url,
byte[] data,
HttpResultHandler<byte[]> resultHandler)
Issue an HTTP request that requires and optionally returns octet-stream data (e.g., POST, PUT). |
void |
octetRequest(HttpRequestMethod.HttpMethod method,
String url,
HttpResultHandler<byte[]> resultHandler)
Issue an HTTP request the returns octet-stream data (e.g., GET). |
void |
request(HttpRequestMethod.HttpMethod method,
String url,
HttpResultHandler<T> resultHandler)
Issue an HTTP request that does not require request content (e.g., GET, DELETE). |
void |
request(HttpRequestMethod.HttpMethod method,
String url,
T parser,
HttpResultHandler<T> resultHandler)
Issue an HTTP request that requires request content (e.g., PUT, POST). |
void |
setLocaleName(String localeName)
Set the name of the locale to use for requests. |
Method Detail |
---|
void request(HttpRequestMethod.HttpMethod method, String url, HttpResultHandler<T> resultHandler)
method
- The HTTP method.url
- The target of the request.resultHandler
- The handler to be notified of the request result.void request(HttpRequestMethod.HttpMethod method, String url, T parser, HttpResultHandler<T> resultHandler)
method
- The HTTP method.url
- The target of the request.parser
- The source of the request content.resultHandler
- The handler to be notified of the request result.void octetRequest(HttpRequestMethod.HttpMethod method, String url, HttpResultHandler<byte[]> resultHandler)
method
- The HTTP method.url
- The target of the request.resultHandler
- The handler to be notified of the request result.void octetRequest(HttpRequestMethod.HttpMethod method, String url, byte[] data, HttpResultHandler<byte[]> resultHandler)
method
- The HTTP method.url
- The target of the request.data
- The request content (may be null).resultHandler
- The handler to be notified of the request result.void setLocaleName(String localeName)
localeName
- The name of the locale (e.g., "en-US" or "de-CH"). May be null.String getLocaleName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |