Top Description Methods
org.apache.hc.core5.http.protocol

public Interface HttpProcessor

extends HttpRequestInterceptor, HttpResponseInterceptor
Known Direct Implementers
org.apache.hc.core5.http.protocol.DefaultHttpProcessor
Annotations
@Contract
threading:STATELESS
Imports
org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.HttpRequestInterceptor, .HttpResponseInterceptor

HTTP protocol processor is a collection of protocol interceptors that implements the 'Chain of Responsibility' pattern, where each individual protocol interceptor is expected to work on a particular aspect of the HTTP protocol the interceptor is responsible for.

Usually the order in which interceptors are executed should not matter as long as they do not depend on a particular state of the execution context. If protocol interceptors have interdependencies and therefore must be executed in a particular order, they should be added to the protocol processor in the same sequence as their expected execution order.

Protocol interceptors must be implemented as thread-safe. Similarly to servlets, protocol interceptors should not use instance variables unless access to those variables is synchronized.

Since
4.0

Method Summary

Inherited from org.apache.hc.core5.http.HttpRequestInterceptor:
process
Inherited from org.apache.hc.core5.http.HttpResponseInterceptor:
process