org.xlightweb
Interface IHttpResponseHandler

Package class diagram package IHttpResponseHandler
All Known Implementing Classes:
FutureResponseHandler

public interface IHttpResponseHandler

call back interface to be notified if the response has been received

Example:

  ResponseHandler implements IResponseHandler {
  
     public void onResponse(IHttpResponse response) throws IOException {
        status = response.getStatus();
        ...
     }
     
     public void void onException(IOException ioe) {
        ...
     }
  }
 


Field Summary
static int DEFAULT_EXECUTION_MODE
           
static int DEFAULT_INVOKE_ON_MODE
           
 
Method Summary
 void onException(IOException ioe)
          call back method which will be called if an io exception occurs
 void onResponse(IHttpResponse response)
          call back method which will be called if the response is received
 

Field Detail

DEFAULT_EXECUTION_MODE

static final int DEFAULT_EXECUTION_MODE
See Also:
Constant Field Values

DEFAULT_INVOKE_ON_MODE

static final int DEFAULT_INVOKE_ON_MODE
See Also:
Constant Field Values
Method Detail

onResponse

void onResponse(IHttpResponse response)
                throws IOException
call back method which will be called if the response is received

Parameters:
response - the response
Throws:
IOException

onException

void onException(IOException ioe)
                 throws IOException
call back method which will be called if an io exception occurs

Parameters:
ioe - the io exception
Throws:
IOException