Interface InMemoryInterceptedResult

All Known Subinterfaces:
InMemoryInterceptedAddResult, InMemoryInterceptedCompareResult, InMemoryInterceptedDeleteResult, InMemoryInterceptedExtendedResult, InMemoryInterceptedIntermediateResponse, InMemoryInterceptedModifyDNResult, InMemoryInterceptedModifyResult, InMemoryInterceptedSASLBindResult, InMemoryInterceptedSearchEntry, InMemoryInterceptedSearchReference, InMemoryInterceptedSearchResult, InMemoryInterceptedSimpleBindResult

This class provides an API that can be used in the course of processing a result via the InMemoryOperationInterceptor API.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the server address to which the client is connected, if available.
    int
    Retrieves the server port to which the client is connected, if available.
    long
    Retrieves the connection ID for the associated client connection.
    int
    Retrieves the LDAP message ID for this operation.
    Retrieves the value for a property that has previously been set for this operation.
    void
    Sends an unsolicited notification message to the client.
  • Method Details

    • getConnectionID

      Retrieves the connection ID for the associated client connection.
      Returns:
      The connection ID for the associated client connection.
    • getConnectedAddress

      Retrieves the server address to which the client is connected, if available.
      Returns:
      The server address to which the client is connected, or null if this is not available for some reason.
    • getConnectedPort

      Retrieves the server port to which the client is connected, if available.
      Returns:
      The server port to which the client is connected, or -1 if this is not available for some reason.
    • getMessageID

      Retrieves the LDAP message ID for this operation.
      Returns:
      The LDAP message ID for this operation.
    • sendUnsolicitedNotification

      void sendUnsolicitedNotification(@NotNull ExtendedResult unsolicitedNotification) throws LDAPException
      Sends an unsolicited notification message to the client.
      Parameters:
      unsolicitedNotification - The unsolicited notification to send to the client. It must not be null.
      Throws:
      LDAPException - If a problem is encountered while trying to send the unsolicited notification.
    • getProperty

      Retrieves the value for a property that has previously been set for this operation. This can be used to help maintain state information across the request and response for an operation.
      Parameters:
      name - The name of the property for which to retrieve the corresponding value. It must not be null.
      Returns:
      The value for the requested property, or null if there is no value for the specified property.