org.pfsw.tools.beluga.ldap.interceptors
Class DelayResponseInterceptor
java.lang.Object
org.pfsw.tools.beluga.ldap.interceptors.DelayResponseInterceptor
- All Implemented Interfaces:
- IResponseInterceptor
public class DelayResponseInterceptor
- extends Object
- implements IResponseInterceptor
The purpose of this interceptor is to delay all responses for a configurable
time (in milliseconds).
- Version:
- 1.0
- Author:
- Manfred Duchrow
DelayResponseInterceptor
public DelayResponseInterceptor()
- Initialize the new instance with default values.
getDelay
public long getDelay()
setDelay
public void setDelay(long newValue)
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 Manfred Duchrow Consulting & Software. All Rights Reserved.