Example usage for javax.naming.ldap ExtendedRequest getEncodedValue

List of usage examples for javax.naming.ldap ExtendedRequest getEncodedValue

Introduction

In this page you can find the example usage for javax.naming.ldap ExtendedRequest getEncodedValue.

Prototype

public byte[] getEncodedValue();

Source Link

Document

Retrieves the ASN.1 BER encoded value of the LDAP extended operation request.

Usage

From source file:com.springsource.insight.plugin.ldap.TestLdapContext.java

public ExtendedResponse extendedOperation(final ExtendedRequest request) throws NamingException {
    ensureOpen();//w w w  .j ava 2s  .c om
    logger.info("extendedOperation(" + request.getID() + ")");
    return new ExtendedResponse() {
        private static final long serialVersionUID = 1L;

        public String getID() {
            return request.getID();
        }

        public byte[] getEncodedValue() {
            return request.getEncodedValue();
        }
    };
}