com.github.kevinsawicki.http
Class HttpRequest.CloseOperation<V>
java.lang.Object
com.github.kevinsawicki.http.HttpRequest.Operation<V>
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.
Method Summary |
protected void |
done()
Operation complete callback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest.CloseOperation
protected HttpRequest.CloseOperation(Closeable closeable,
boolean ignoreCloseExceptions)
- Create closer for operation
- Parameters:
closeable
- ignoreCloseExceptions
-
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.