Package com.forgerock.reactive
Class ServerConnectionFactoryAdapter.ServerConnectionAdapter
- java.lang.Object
-
- com.forgerock.reactive.ServerConnectionFactoryAdapter.ServerConnectionAdapter
-
- All Implemented Interfaces:
ReactiveHandler<LDAPClientContext,LdapMessages.LdapRequestEnvelope,Stream<Response>>
- Enclosing class:
- ServerConnectionFactoryAdapter
public static final class ServerConnectionFactoryAdapter.ServerConnectionAdapter extends Object implements ReactiveHandler<LDAPClientContext,LdapMessages.LdapRequestEnvelope,Stream<Response>>
Adapt aServerConnectionto aFunctioncompatible withTransportProvider.getLDAPListener(java.util.Set, Function, org.forgerock.util.Options).
-
-
Constructor Summary
Constructors Constructor Description ServerConnectionAdapter(LDAPClientContext clientContext, DecodeOptions decodeOptions, ServerConnection<Integer> serverConnection)Creates a new adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Response>handle(LDAPClientContext context, LdapMessages.LdapRequestEnvelope request)Process an input given the context.
-
-
-
Constructor Detail
-
ServerConnectionAdapter
public ServerConnectionAdapter(LDAPClientContext clientContext, DecodeOptions decodeOptions, ServerConnection<Integer> serverConnection)
Creates a new adapter.- Parameters:
clientContext- TheLDAPClientContextwhich represents the client connectiondecodeOptions- TheDecodeOptionsto use during request deserializationserverConnection- theServerConnectionto adapt
-
-
Method Detail
-
handle
public Stream<Response> handle(LDAPClientContext context, LdapMessages.LdapRequestEnvelope request) throws Exception
Description copied from interface:ReactiveHandlerProcess an input given the context.- Specified by:
handlein interfaceReactiveHandler<LDAPClientContext,LdapMessages.LdapRequestEnvelope,Stream<Response>>- Parameters:
context- Context in which the input must be processedrequest- The input to process- Returns:
- An output.
- Throws:
Exception- if the request cannot be processed
-
-