@Contract(threading=STATELESS) public interface HttpRequestInterceptor
Protocol Interceptors can also manipulate content entities enclosed with messages. Usually this is accomplished by using the 'Decorator' pattern where a wrapper entity class is used to decorate the original entity.
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.
| Modifier and Type | Method and Description |
|---|---|
void |
process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Processes a request.
|
void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException
request - the request to processentity - the request entity details or null if not availablecontext - the context for the requestHttpException - in case of an HTTP protocol violationIOException - in case of an I/O errorCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.