@Override public boolean isStreaming() { return original.isStreaming(); }
@Override public boolean isStreaming() { return wrappedEntity.isStreaming(); }
@Override public boolean isStreaming() { return wrappedEntity.isStreaming(); }
@Override public boolean isStreaming() { return wrappedEntity.isStreaming(); }
@Override public boolean isStreaming() { return wrappedEntity.isStreaming(); }
/** * Ensures that the entity content is fully consumed and the content stream, if exists, * is closed. * * @param entity the entity to consume. * @throws IOException if an error occurs reading the input stream * * @since 4.1 */ public static void consume(final HttpEntity entity) throws IOException { if (entity == null) { return; } if (entity.isStreaming()) { Closer.close(entity.getContent()); } }
/** * Ensures that the entity content is fully consumed and the content stream, if exists, * is closed. * * @param entity the entity to consume. * @throws IOException if an error occurs reading the input stream * * @since 4.1 */ public static void consume(final HttpEntity entity) throws IOException { if (entity == null) { return; } if (entity.isStreaming()) { Closer.close(entity.getContent()); } }
public static void enchance(final ClassicHttpResponse response, final ExecRuntime execRuntime) { final HttpEntity entity = response.getEntity(); if (entity != null && entity.isStreaming() && execRuntime != null) { response.setEntity(new ResponseEntityProxy(entity, execRuntime)); } }
if (entity == null || !entity.isStreaming()) {
if (entity == null || !entity.isStreaming()) {