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

public Class ResponseDate

extends Object
implements HttpResponseInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpResponseInterceptor
Annotations
@Contract
threading:SAFE
Imports
java.io.IOException, org.apache.http.HttpException, .HttpResponse, .HttpResponseInterceptor, .HttpStatus, org.apache.http.annotation.ThreadingBehavior, .Contract, org.apache.http.util.Args

ResponseDate is responsible for adding Date header to the outgoing responses. This interceptor is recommended for server side protocol processors.
Since
4.0

Field Summary

Modifier and TypeField and Description
private static final HttpDateGenerator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpResponse
the response to postprocess
response
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpResponseInterceptor.process.

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

Field Detail

DATE_GENERATORback to summary
private static final HttpDateGenerator DATE_GENERATOR

Constructor Detail

ResponseDateback to summary
public ResponseDate()

Method Detail

processback to summary
public void process(final HttpResponse response, final HttpContext context) throws HttpException, IOException

Implements org.apache.http.HttpResponseInterceptor.process.

Doc from org.apache.http.HttpResponseInterceptor.process.

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

Parameters
response:HttpResponse

the response to postprocess

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