public class StartTlsFactory extends Object implements ExtendedOperationFactory
ExtendedOperationFactory
for creating SartTls extended reques/response
pairs.Constructor and Description |
---|
StartTlsFactory(LdapApiService codec) |
Modifier and Type | Method and Description |
---|---|
StartTlsRequestDecorator |
decorate(ExtendedRequest modelRequest)
Decorates a non-decorated request.
|
StartTlsResponseDecorator |
decorate(ExtendedResponse decoratedResponse)
Decorates an ExtendedResponse which may or may not be of the expected
type.
|
String |
getOid()
Gets the OID of the extended requests this factory generates.
|
StartTlsRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
StartTlsResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
public StartTlsFactory(LdapApiService codec)
public String getOid()
getOid
in interface ExtendedOperationFactory
public StartTlsResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse
in interface ExtendedOperationFactory
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
public StartTlsRequest newRequest(byte[] value)
ExtendedRequestDecorator
with the following encoded value.newRequest
in interface ExtendedOperationFactory
value
- the encoded valuepublic StartTlsRequestDecorator decorate(ExtendedRequest modelRequest)
decorate
in interface ExtendedOperationFactory
modelRequest
- the non decorated model requestpublic StartTlsResponseDecorator decorate(ExtendedResponse decoratedResponse)
decorate
in interface ExtendedOperationFactory
decoratedResponse
- the message to be decorated.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.