public class StartTlsHandler extends Object implements ExtendedOperationHandler<org.apache.directory.api.ldap.model.message.ExtendedRequest,org.apache.directory.api.ldap.model.message.ExtendedResponse>
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSION_OID |
Constructor and Description |
---|
StartTlsHandler() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getExtensionOids()
The OIDs of the extensions supported by this handler.
|
String |
getOid() |
void |
handleExtendedOperation(LdapSession session,
org.apache.directory.api.ldap.model.message.ExtendedRequest req)
Handles the specified extended operation.
|
void |
setLdapServer(LdapServer ldapServer)
Sets the LDAP server for this extendedOperation handler.
|
public static final String EXTENSION_OID
public StartTlsHandler()
public void handleExtendedOperation(LdapSession session, org.apache.directory.api.ldap.model.message.ExtendedRequest req) throws Exception
handleExtendedOperation
in interface ExtendedOperationHandler<org.apache.directory.api.ldap.model.message.ExtendedRequest,org.apache.directory.api.ldap.model.message.ExtendedResponse>
session
- the session object related with current connectionreq
- the LDAP Extended operation requestException
- if failed to handle the operationpublic final Set<String> getExtensionOids()
getExtensionOids
in interface ExtendedOperationHandler<org.apache.directory.api.ldap.model.message.ExtendedRequest,org.apache.directory.api.ldap.model.message.ExtendedResponse>
public final String getOid()
getOid
in interface ExtendedOperationHandler<org.apache.directory.api.ldap.model.message.ExtendedRequest,org.apache.directory.api.ldap.model.message.ExtendedResponse>
public void setLdapServer(LdapServer ldapServer)
setLdapServer
in interface ExtendedOperationHandler<org.apache.directory.api.ldap.model.message.ExtendedRequest,org.apache.directory.api.ldap.model.message.ExtendedResponse>
ldapServer
- the ldap protocol serverCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.