use of org.apache.directory.api.ldap.model.message.ExtendedRequestImpl in project directory-ldap-api by apache.
the class DefaultLdapCodecService method newExtendedRequest.
/**
* {@inheritDoc}
*/
@Override
public ExtendedRequest newExtendedRequest(String oid, byte[] value) {
ExtendedRequest req;
ExtendedOperationFactory extendedRequestFactory = extendedOperationFactories.get(oid);
if (extendedRequestFactory != null) {
req = extendedRequestFactory.newRequest(value);
} else {
ExtendedRequestDecorator<ExtendedRequest> decorator = new ExtendedRequestDecorator(this, new ExtendedRequestImpl());
decorator.setRequestName(oid);
decorator.setRequestValue(value);
req = decorator;
}
return req;
}
Aggregations