@Override public void close() throws IOException { super.close(); this.response.close(); } }
@Override // This method is synchronized to protect against premature calling of finalize by the GC protected synchronized void finalize() throws Throwable { if (isClosed()) return; try { close(); } catch (Exception ignored) { } }
public Object extractEntity(ClientContext context, Object... args) { ClientResponse response = context.getClientResponse(); int status = response.getStatus(); if (status >= 400) { response.bufferEntity(); response.close(); ClientInvocation.handleErrorStatus(response); } response.close(); return null; } };
public Response.Status extractEntity(ClientContext context, Object... args) { if (release) context.getClientResponse().close(); return Response.Status.fromStatusCode(context.getClientResponse().getStatus()); } };
response.close();
@Override public void close() throws IOException { super.close(); this.response.close(); } }
@Override public void close() throws IOException { super.close(); this.response.close(); } }
@Override // This method is synchronized to protect against premature calling of finalize by the GC protected synchronized void finalize() throws Throwable { if (isClosed()) return; try { close(); } catch (Exception ignored) { } }
@Override // This method is synchronized to protect against premature calling of finalize by the GC protected synchronized void finalize() throws Throwable { if (isClosed()) return; try { close(); } catch (Exception ignored) { } }
public Object extractEntity(ClientContext context, Object... args) { ClientResponse response = context.getClientResponse(); int status = response.getStatus(); if (status >= 400) { response.bufferEntity(); response.close(); ClientInvocation.handleErrorStatus(response); } response.close(); return null; } };
public Object extractEntity(ClientContext context, Object... args) { ClientResponse response = context.getClientResponse(); int status = response.getStatus(); if (status >= 400) { response.bufferEntity(); response.close(); ClientInvocation.handleErrorStatus(response); } response.close(); return null; } };
public Response.Status extractEntity(ClientContext context, Object... args) { if (release) context.getClientResponse().close(); return Response.Status.fromStatusCode(context.getClientResponse().getStatus()); } };
response.close();
public Response.Status extractEntity(ClientContext context, Object... args) { if (release) context.getClientResponse().close(); return Response.Status.fromStatusCode(context.getClientResponse().getStatus()); } };