Example usage for javax.naming.ldap ExtendedRequest getID

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

Introduction

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

Prototype

public String getID();

Source Link

Document

Retrieves the object identifier of the request.

Usage

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

public ExtendedResponse extendedOperation(final ExtendedRequest request) throws NamingException {
    ensureOpen();//from  w w  w. ja va  2  s . 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();
        }
    };
}