Tabnine Logo
BasicManagedEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
BasicManagedEntity
in
org.apache.http.conn

Best Java code snippets using org.apache.http.conn.BasicManagedEntity (Showing top 20 results out of 315)

origin: robolectric/robolectric

entity = new BasicManagedEntity(entity, managedConn, reuse);
response.setEntity(entity);
origin: robovm/robovm

public boolean eofDetected(InputStream wrapped)
  throws IOException {
  try {
    if (attemptReuse && (managedConn != null)) {
      // there may be some cleanup required, such as
      // reading trailers after the response body:
      wrapped.close();
      managedConn.markReusable();
    }
  } finally {
    releaseManagedConnection();
  }
  return false;
}
origin: robovm/robovm

public void releaseConnection()
  throws IOException {
  this.consumeContent();
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

@Override
public void releaseConnection() throws IOException {
  ensureConsumed();
}
origin: Nextdoor/bender

@Override
public void releaseConnection() throws IOException {
  ensureConsumed();
}
origin: robovm/robovm

public boolean streamClosed(InputStream wrapped)
  throws IOException {
  try {
    if (attemptReuse && (managedConn != null)) {
      // this assumes that closing the stream will
      // consume the remainder of the response body:
      wrapped.close();
      managedConn.markReusable();
    }
  } finally {
    releaseManagedConnection();
  }
  return false;
}
origin: robovm/robovm

entity = new BasicManagedEntity(entity, managedConn, reuse);
response.setEntity(entity);
origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpclient

public void releaseConnection() throws IOException {
  ensureConsumed();
}
origin: robovm/robovm

@Override
public void writeTo(final OutputStream outstream) throws IOException {
  super.writeTo(outstream);
  consumeContent();
}
origin: robovm/robovm

@Override
public void consumeContent() throws IOException {
  if (managedConn == null)
    return;
  try {
    if (attemptReuse) {
      // this will not trigger a callback from EofSensorInputStream
      wrappedEntity.consumeContent();
      managedConn.markReusable();
    }
  } finally {
    releaseManagedConnection();
  }
}
origin: com.github.japgolly.android.test/robolectric

entity = new BasicManagedEntity(entity, managedConn, reuse);
response.setEntity(entity);
origin: com.hynnet/httpclient

public void releaseConnection() throws IOException {
  ensureConsumed();
}
origin: com.mobidevelop.robovm/robovm-rt

public void releaseConnection()
  throws IOException {
  this.consumeContent();
}
origin: MobiVM/robovm

public boolean eofDetected(InputStream wrapped)
  throws IOException {
  try {
    if (attemptReuse && (managedConn != null)) {
      // there may be some cleanup required, such as
      // reading trailers after the response body:
      wrapped.close();
      managedConn.markReusable();
    }
  } finally {
    releaseManagedConnection();
  }
  return false;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

entity = new BasicManagedEntity(entity, managedConn, reuse);
response.setEntity(entity);
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * @deprecated (4.1) Use {@link EntityUtils#consume(HttpEntity)}
 */
@Deprecated
@Override
public void consumeContent() throws IOException {
  ensureConsumed();
}
origin: MobiVM/robovm

public void releaseConnection()
  throws IOException {
  this.consumeContent();
}
origin: com.mobidevelop.robovm/robovm-rt

public boolean streamClosed(InputStream wrapped)
  throws IOException {
  try {
    if (attemptReuse && (managedConn != null)) {
      // this assumes that closing the stream will
      // consume the remainder of the response body:
      wrapped.close();
      managedConn.markReusable();
    }
  } finally {
    releaseManagedConnection();
  }
  return false;
}
origin: com.gluonhq/robovm-rt

entity = new BasicManagedEntity(entity, managedConn, reuse);
response.setEntity(entity);
origin: Nextdoor/bender

/**
 * @deprecated (4.1) Use {@link EntityUtils#consume(HttpEntity)}
 */
@Deprecated
@Override
public void consumeContent() throws IOException {
  ensureConsumed();
}
org.apache.http.connBasicManagedEntity

Javadoc

An entity that releases a ManagedClientConnection. A ManagedClientConnection will typically not return a managed entity, but you can replace the unmanaged entity in the response with a managed one.

Most used methods

  • <init>
    Creates a new managed entity that can release a connection.
  • releaseManagedConnection
    Releases the connection gracefully. The connection attribute will be nullified. Subsequent invocatio
  • consumeContent
  • ensureConsumed

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Notification (javax.management)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Option (scala)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now