Example usage for javax.naming.ldap ExtendedResponse ExtendedResponse

List of usage examples for javax.naming.ldap ExtendedResponse ExtendedResponse

Introduction

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

Prototype

ExtendedResponse

Source Link

Usage

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

public ExtendedResponse extendedOperation(final ExtendedRequest request) throws NamingException {
    ensureOpen();/*from www.  j a  v  a2s  . c  o  m*/
    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();
        }
    };
}