org.pfsw.tools.beluga.ldap.server
Interface IRequestInterceptor


public interface IRequestInterceptor

Used in an interceptor chain to do something with all incoming LDAP request messages.

Version:
1.0
Author:
Manfred Duchrow

Method Summary
 ResponseMessage getResponse()
          If the interceptor has consumed a request in its handleRequest(RequestMessage) method (which then has returned false) then this method must return the response message for the consumed request.
 boolean handleRequest(RequestMessage requestMessage)
          Handles the given request message in some way.
 

Method Detail

handleRequest

boolean handleRequest(RequestMessage requestMessage)
Handles the given request message in some way. Usually this is something like logging, so not really consuming the message and producing a response.

Parameters:
requestMessage - The completely parsed request message.
Returns:
true if processing may continue and false if request message has been consumed by the interceptor.

getResponse

ResponseMessage getResponse()
If the interceptor has consumed a request in its handleRequest(RequestMessage) method (which then has returned false) then this method must return the response message for the consumed request.

Returns:
null or a response message


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