org.xlightweb
Interface 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) {
...
}
}
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
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