Class HttpEntityEnclosingRequestBase

All Implemented Interfaces:
Cloneable, AbortableHttpRequest, HttpUriRequest, HttpEntityEnclosingRequest, HttpMessage, HttpRequest
Direct Known Subclasses:
HttpPost, HttpPut

public abstract class HttpEntityEnclosingRequestBase
extends HttpRequestBase
implements HttpEntityEnclosingRequest
Basic implementation of an HTTP request that can be modified.
Since:
4.0
Version:
$Revision: 674186 $
Author:
Oleg Kalnichevski
  • Constructor Details

    • HttpEntityEnclosingRequestBase

      public HttpEntityEnclosingRequestBase()
  • Method Details

    • getEntity

      public HttpEntity getEntity()
      Specified by:
      getEntity in interface HttpEntityEnclosingRequest
    • setEntity

      public void setEntity​(HttpEntity entity)
      Description copied from interface: HttpEntityEnclosingRequest
      Hands the entity to the request.
      Specified by:
      setEntity in interface HttpEntityEnclosingRequest
      Parameters:
      entity - the entity to send.
    • expectContinue

      public boolean expectContinue()
      Description copied from interface: HttpEntityEnclosingRequest
      Tells if this request should use the expect-continue handshake. The expect continue handshake gives the server a chance to decide whether to accept the entity enclosing request before the possibly lengthy entity is sent across the wire.
      Specified by:
      expectContinue in interface HttpEntityEnclosingRequest
      Returns:
      true if the expect continue handshake should be used, false if not.
    • clone

      public Object clone() throws CloneNotSupportedException
      Description copied from class: Object
      Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.
      Overrides:
      clone in class HttpRequestBase
      Returns:
      a copy of this object.
      Throws:
      CloneNotSupportedException - if this object's class does not implement the Cloneable interface.