Class InMemoryOperationInterceptor

java.lang.Object
com.unboundid.ldap.listener.interceptor.InMemoryOperationInterceptor

This class defines an API that may be used to intercept and potentially alter communication between an LDAP client and the in-memory directory server. An operation interceptor may be enabled for use with the in-memory directory server by registering it with the InMemoryDirectoryServerConfig. The default implementation of all methods defined in this class is to return the provided request or result without altering it in any way.

Note that any operation interceptors configured for use will be invoked only for requests received via LDAP. Operations processed via method calls made directly to the InMemoryDirectoryServer class via the LDAPInterface interface will not cause any operation interceptors to be invoked.
  • Constructor Details

  • Method Details

    • processAddRequest

      Invokes any processing that should be performed for the provided add request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processAddResult

      Invokes any processing that should be performed for the provided add result before it is returned to the client.
      Parameters:
      result - Information about the add result that is to be returned to the client.
    • processSimpleBindRequest

      Invokes any processing that should be performed for the provided simple bind request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processSimpleBindResult

      Invokes any processing that should be performed for the provided simple bind result before it is returned to the client.
      Parameters:
      result - Information about the bind result that is to be returned to the client.
    • processSASLBindRequest

      Invokes any processing that should be performed for the provided SASL bind request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processSASLBindResult

      Invokes any processing that should be performed for the provided SASL bind result before it is returned to the client.
      Parameters:
      result - Information about the bind result that is to be returned to the client.
    • processCompareRequest

      Invokes any processing that should be performed for the provided compare request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processCompareResult

      Invokes any processing that should be performed for the provided compare result before it is returned to the client.
      Parameters:
      result - Information about the compare result that is to be returned to the client.
    • processDeleteRequest

      Invokes any processing that should be performed for the provided delete request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processDeleteResult

      Invokes any processing that should be performed for the provided delete result before it is returned to the client.
      Parameters:
      result - Information about the delete result that is to be returned to the client.
    • processExtendedRequest

      Invokes any processing that should be performed for the provided extended request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processExtendedResult

      Invokes any processing that should be performed for the provided extended result before it is returned to the client.
      Parameters:
      result - Information about the extended result that is to be returned to the client.
    • processModifyRequest

      Invokes any processing that should be performed for the provided modify request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processModifyResult

      Invokes any processing that should be performed for the provided modify result before it is returned to the client.
      Parameters:
      result - Information about the modify result that is to be returned to the client.
    • processModifyDNRequest

      Invokes any processing that should be performed for the provided modify DN request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processModifyDNResult

      Invokes any processing that should be performed for the provided modify DN result before it is returned to the client.
      Parameters:
      result - Information about the modify DN result that is to be returned to the client.
    • processSearchRequest

      Invokes any processing that should be performed for the provided search request before it is passed to the in-memory directory server.
      Parameters:
      request - Information about the request that was received from the client.
      Throws:
      LDAPException - If the provided operation should not be passed onto the in-memory directory server, but the result represented by this exception should be used instead.
    • processSearchEntry

      Invokes any processing that should be performed for the provided search result entry before it is returned to the client.
      Parameters:
      entry - Information about the search result entry to be returned.
    • processSearchReference

      Invokes any processing that should be performed for the provided search result reference before it is returned to the client.
      Parameters:
      reference - Information about the search result reference to be returned.
    • processSearchResult

      Invokes any processing that should be performed for the provided search result before it is returned to the client.
      Parameters:
      result - Information about the search result that is to be returned to the client.
    • processIntermediateResponse

      Invokes any processing that should be performed for the provided intermediate response before it is returned to the client.
      Parameters:
      response - Information about the intermediate response to be returned to the client.