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(HttpResponse
the response to postprocess response, HttpContext the context for the request context)Processes a response. |
| process | back to summary |
|---|---|
| public void process(HttpResponse response, HttpContext context) throws HttpException, IOException 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.
| |