Top Description Fields Constructors Methods
org.apache.http.protocol

public Class RequestExpectContinue

extends Object
implements HttpRequestInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpRequestInterceptor
Annotations
@Contract
threading:IMMUTABLE
@SuppressWarnings:deprecation
Imports
java.io.IOException, org.apache.http.HttpEntity, .HttpEntityEnclosingRequest, .HttpException, .HttpRequest, .HttpRequestInterceptor, .HttpVersion, .ProtocolVersion, org.apache.http.annotation.ThreadingBehavior, .Contract, org.apache.http.params.CoreProtocolPNames, org.apache.http.util.Args

RequestExpectContinue is responsible for enabling the 'expect-continue' handshake by adding Expect header. This interceptor is recommended for client side protocol processors.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
public
public
RequestExpectContinue(final boolean activeByDefault)

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpRequest
the request to preprocess
request
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpRequestInterceptor.process.

Processes a request.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeByDefaultback to summary
private final boolean activeByDefault

Constructor Detail

RequestExpectContinueback to summary
public RequestExpectContinue()
Annotations
@Deprecated
RequestExpectContinueback to summary
public RequestExpectContinue(final boolean activeByDefault)
Since
4.3

Method Detail

processback to summary
public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException

Implements org.apache.http.HttpRequestInterceptor.process.

Doc from org.apache.http.HttpRequestInterceptor.process.

Processes a request. On the client side, this step is performed before the request is sent to the server. On the server side, this step is performed on incoming messages before the message body is evaluated.

Parameters
request:HttpRequest

the request to preprocess

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
HttpException:
in case of an HTTP protocol violation
IOException:
in case of an I/O error