class ResponseProxyHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
HttpResponse with
Closeable.close() method.| Modifier and Type | Field and Description |
|---|---|
private static java.lang.reflect.Method |
CLOSE_METHOD |
private org.apache.http.HttpResponse |
original |
| Constructor and Description |
|---|
ResponseProxyHandler(org.apache.http.HttpResponse original) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
private static final java.lang.reflect.Method CLOSE_METHOD
private final org.apache.http.HttpResponse original
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable