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 |
|---|---|
| public void | process(HttpRequest
the request to process request, EntityDetails the request entity details or entity, HttpContext null if not availablethe context for the request context)Processes a request. |
| process | back to summary |
|---|---|
| public void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException 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.
| |