org.xlightweb
Interface IHttpSocketTimeoutHandler
- All Known Implementing Classes:
- FutureResponseHandler
public interface IHttpSocketTimeoutHandler
SocketTimeouthandler
Example:
class ResponseHandler implements IHttpResponseHandler, IHttpSocketTimeoutHandler {
public void onResponse(IHttpResponse response) throws IOException {
// ...
}
// will only be called if an exception occurs
public void onException(IOException ioe) {
// ...
}
// overrides the onException method by handling socket timeout exceptions
public void onException(SocketTimeoutException stoe) {
// ...
}
}
onException
void onException(SocketTimeoutException stoe)
- call back method which will be called if an socket timeout exception occurs
- Parameters:
ioe
- the io exception