com.github.kevinsawicki.http
Class HttpRequest.CloseOperation<V>

java.lang.Object
  extended by com.github.kevinsawicki.http.HttpRequest.Operation<V>
      extended by com.github.kevinsawicki.http.HttpRequest.CloseOperation<V>
Type Parameters:
V -
All Implemented Interfaces:
Callable<V>
Enclosing class:
HttpRequest

protected abstract static class HttpRequest.CloseOperation<V>
extends HttpRequest.Operation<V>

Class that ensures a Closeable gets closed with proper exception handling.


Constructor Summary
protected HttpRequest.CloseOperation(Closeable closeable, boolean ignoreCloseExceptions)
          Create closer for operation
 
Method Summary
protected  void done()
          Operation complete callback
 
Methods inherited from class com.github.kevinsawicki.http.HttpRequest.Operation
call, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequest.CloseOperation

protected HttpRequest.CloseOperation(Closeable closeable,
                                     boolean ignoreCloseExceptions)
Create closer for operation

Parameters:
closeable -
ignoreCloseExceptions -
Method Detail

done

protected void done()
             throws IOException
Description copied from class: HttpRequest.Operation
Operation complete callback

Specified by:
done in class HttpRequest.Operation<V>
Throws:
IOException


Copyright © 2011-2013. All Rights Reserved.