Class PasswordModifyFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.pwdModify.PasswordModifyFactory
-
- All Implemented Interfaces:
ExtendedOperationFactory
public class PasswordModifyFactory extends Object implements ExtendedOperationFactory
AnExtendedOperationFactory
for creating PwdModify extended request response pairs.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description PasswordModifyFactory(LdapApiService codec)
Creates a new instance of PasswordModifyFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordModifyRequestDecorator
decorate(ExtendedRequest modelRequest)
Decorates a non-decorated request.PasswordModifyResponseDecorator
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.PasswordModifyRequest
newRequest(byte[] value)
Returns a newExtendedRequestDecorator
with the following encoded value.PasswordModifyResponse
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.
-
-
-
Constructor Detail
-
PasswordModifyFactory
public PasswordModifyFactory(LdapApiService codec)
Creates a new instance of PasswordModifyFactory.- Parameters:
codec
- The codec for this factory.
-
-
Method Detail
-
getOid
public String getOid()
Gets the OID of the extended requests this factory generates.- Specified by:
getOid
in interfaceExtendedOperationFactory
- Returns:
- the extended request OID
-
newResponse
public PasswordModifyResponse newResponse(byte[] encodedValue) throws DecoderException
Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.- Specified by:
newResponse
in interfaceExtendedOperationFactory
- Parameters:
encodedValue
- The encoded value for the ExtendedResponse instance.- Returns:
- The new ExtendedResponse.
- Throws:
DecoderException
- If we can't decode the response
-
newRequest
public PasswordModifyRequest newRequest(byte[] value)
Returns a newExtendedRequestDecorator
with the following encoded value.- Specified by:
newRequest
in interfaceExtendedOperationFactory
- Parameters:
value
- the encoded value- Returns:
- the decorator for the extended request type
-
decorate
public PasswordModifyRequestDecorator decorate(ExtendedRequest modelRequest)
Decorates a non-decorated request.- Specified by:
decorate
in interfaceExtendedOperationFactory
- Parameters:
modelRequest
- the non decorated model request- Returns:
- the decorated model request
-
decorate
public PasswordModifyResponseDecorator decorate(ExtendedResponse decoratedResponse)
Decorates an ExtendedResponse which may or may not be of the expected type. The factory implementor must check and handle appropriately.- Specified by:
decorate
in interfaceExtendedOperationFactory
- Parameters:
decoratedResponse
- the message to be decorated.- Returns:
- The decorated message
-
-