org.pfsw.tools.beluga.ldap.interceptors
Class ResponseInterceptorChain

java.lang.Object
  extended by org.pfsw.tools.beluga.ldap.interceptors.InterceptorChain<IResponseInterceptor>
      extended by org.pfsw.tools.beluga.ldap.interceptors.ResponseInterceptorChain
All Implemented Interfaces:
IResponseInterceptor

public class ResponseInterceptorChain
extends InterceptorChain<IResponseInterceptor>
implements IResponseInterceptor

The holder of all response interceptors that calls them in the defined order and returns the response message received from the last interceptor.

Version:
1.0
Author:
Manfred Duchrow

Constructor Summary
ResponseInterceptorChain()
          Initialize the new instance with default values.
 
Method Summary
 ResponseMessage handleResponse(ResponseMessage responseMessage)
          Handles the response and returns a response object that should be passed to the next interceptor in the interceptor chain.
 
Methods inherited from class org.pfsw.tools.beluga.ldap.interceptors.InterceptorChain
addInterceptors, removeInterceptors
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseInterceptorChain

public ResponseInterceptorChain()
Initialize the new instance with default values.

Method Detail

handleResponse

public ResponseMessage handleResponse(ResponseMessage responseMessage)
Description copied from interface: IResponseInterceptor
Handles the response and returns a response object that should be passed to the next interceptor in the interceptor chain. This can also be the same response message that was passed in to the method.

Specified by:
handleResponse in interface IResponseInterceptor
Parameters:
responseMessage - The current response
Returns:
The response to pass on


Copyright © 2012 Manfred Duchrow Consulting & Software. All Rights Reserved.