com.novell.sentinel.client.http.java
Class HttpRequestorSyncJava<T>

java.lang.Object
  extended by com.novell.sentinel.client.http.java.JavaRequestorBase<T>
      extended by com.novell.sentinel.client.http.java.HttpRequestorSyncJava<T>
Type Parameters:
T - The type of data interface (e.g., JSONParser or Parser) that will be reported as the result of the HTTP request.
All Implemented Interfaces:
HttpRequestMethod, HttpRequestor<T>
Direct Known Subclasses:
JSONHttpRequestorJavaSync

public abstract class HttpRequestorSyncJava<T>
extends JavaRequestorBase<T>
implements HttpRequestor<T>

Implementation of HttpRequestor that synchronously issues HTTP requests and returns the results of those requests.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.novell.sentinel.client.http.java.JavaRequestorBase
JavaRequestorBase.DefaultHostnameVerifier, JavaRequestorBase.NcacFault, JavaRequestorBase.TestTrustManager
 
Nested classes/interfaces inherited from interface com.novell.sentinel.client.http.HttpRequestMethod
HttpRequestMethod.HttpMethod
 
Field Summary
 
Fields inherited from class com.novell.sentinel.client.http.java.JavaRequestorBase
CHAR_ENCODING
 
Constructor Summary
HttpRequestorSyncJava()
           
 
Method Summary
 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).
 
Methods inherited from class com.novell.sentinel.client.http.java.JavaRequestorBase
authenticate, deleteToken, getHostnameVerifier, getLocaleName, getMediaType, getNcacFault, getParser, getSAMLToken, getSecureRandom, getSocketFactory, getSSLSocketFactory, getToken, getTrustManager, issueOctetRequest, issueRequest, sendData, setHostnameVerifier, setLanguageHeaders, setLocaleName, setMediaTypeHeaders, setSAMLToken, setSSLSocketFactory, setTrustManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.novell.sentinel.client.http.HttpRequestor
getLocaleName, setLocaleName
 

Constructor Detail

HttpRequestorSyncJava

public HttpRequestorSyncJava()
Method Detail

request

public void request(HttpRequestMethod.HttpMethod method,
                    String url,
                    HttpResultHandler<T> resultHandler)
Description copied from interface: HttpRequestor
Issue an HTTP request that does not require request content (e.g., GET, DELETE).

Specified by:
request in interface HttpRequestor<T>
Parameters:
method - The HTTP method.
url - The target of the request.
resultHandler - The handler to be notified of the request result.

request

public void request(HttpRequestMethod.HttpMethod method,
                    String url,
                    T parser,
                    HttpResultHandler<T> resultHandler)
Description copied from interface: HttpRequestor
Issue an HTTP request that requires request content (e.g., PUT, POST).

Specified by:
request in interface HttpRequestor<T>
Parameters:
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.

octetRequest

public void octetRequest(HttpRequestMethod.HttpMethod method,
                         String url,
                         HttpResultHandler<byte[]> resultHandler)
Description copied from interface: HttpRequestor
Issue an HTTP request the returns octet-stream data (e.g., GET).

Specified by:
octetRequest in interface HttpRequestor<T>
Parameters:
method - The HTTP method.
url - The target of the request.
resultHandler - The handler to be notified of the request result.

octetRequest

public void octetRequest(HttpRequestMethod.HttpMethod method,
                         String url,
                         byte[] data,
                         HttpResultHandler<byte[]> resultHandler)
Description copied from interface: HttpRequestor
Issue an HTTP request that requires and optionally returns octet-stream data (e.g., POST, PUT).

Specified by:
octetRequest in interface HttpRequestor<T>
Parameters:
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.