public class WhoAmIFactory extends Object implements ExtendedOperationFactory
ExtendedOperationFactory for creating WhoAmI extended request response
pairs.| Constructor and Description |
|---|
WhoAmIFactory(LdapApiService codec) |
| Modifier and Type | Method and Description |
|---|---|
WhoAmIRequestDecorator |
decorate(ExtendedRequest modelRequest)
Decorates a non-decorated request.
|
WhoAmIResponseDecorator |
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.
|
WhoAmIRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
WhoAmIResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
public WhoAmIFactory(LdapApiService codec)
public String getOid()
getOid in interface ExtendedOperationFactorypublic WhoAmIResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse in interface ExtendedOperationFactoryencodedValue - The encoded value for the ExtendedResponse instance.DecoderExceptionpublic WhoAmIRequest newRequest(byte[] value)
ExtendedRequestDecorator with the following encoded value.newRequest in interface ExtendedOperationFactoryvalue - the encoded valuepublic WhoAmIRequestDecorator decorate(ExtendedRequest modelRequest)
decorate in interface ExtendedOperationFactorymodelRequest - the non decorated model requestpublic WhoAmIResponseDecorator decorate(ExtendedResponse decoratedResponse)
decorate in interface ExtendedOperationFactorydecoratedResponse - the message to be decorated.Copyright © 2021. All rights reserved.