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

java.lang.Object
  extended by 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

Constructor Summary
DelayResponseInterceptor()
          Initialize the new instance with default values.
 
Method Summary
 long getDelay()
           
 ResponseMessage handleResponse(ResponseMessage responseMessage)
          Handles the response and returns a response object that should be passed to the next interceptor in the interceptor chain.
 void setDelay(long newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelayResponseInterceptor

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

Method Detail

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.