com.novell.sentinel.client.http
Interface HttpResultHandler<T>

Type Parameters:
T - The data source type (e.g., JSONParser, or org.xml.sax.Parser).

public interface HttpResultHandler<T>

Interface to which is reported the result of an HTTP request made via HttpRequestor.


Method Summary
 void onError(HttpException e)
          Called if the HTTP request failed for any reason (including marshalling data).
 void onSuccess(T data)
          Called if the HTTP request succeeded.
 

Method Detail

onSuccess

void onSuccess(T data)
Called if the HTTP request succeeded.

Parameters:
data - A source for any response content data. May be null.

onError

void onError(HttpException e)
Called if the HTTP request failed for any reason (including marshalling data).

Parameters:
e - The error data.