org.xlightweb
Interface IHttpSocketTimeoutHandler

Package class diagram package 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) {
        // ...
     }
  }
 


Method Summary
 void onException(SocketTimeoutException stoe)
          call back method which will be called if an socket timeout exception occurs
 

Method Detail

onException

void onException(SocketTimeoutException stoe)
call back method which will be called if an socket timeout exception occurs

Parameters:
ioe - the io exception