org.apache.directory.server.ldap
Class LdapProtocolUtils

java.lang.Object
  extended by org.apache.directory.server.ldap.LdapProtocolUtils
All Implemented Interfaces:
LdapProtocolConstants

public class LdapProtocolUtils
extends java.lang.Object
implements LdapProtocolConstants

Utility methods used by the LDAP protocol service.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.server.ldap.LdapProtocolConstants
CORE_SESSION_KEY, EMPTY_CONTROLS, OUTSTANDING_KEY
 
Constructor Summary
LdapProtocolUtils()
           
 
Method Summary
static void setRequestControls(OperationContext opContext, org.apache.directory.shared.ldap.message.Request request)
          Extracts request controls from a request to populate into an OperationContext.
static void setResponseControls(OperationContext opContext, org.apache.directory.shared.ldap.message.Response response)
          Extracts response controls from a an OperationContext to populate into a Response object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapProtocolUtils

public LdapProtocolUtils()
Method Detail

setRequestControls

public static void setRequestControls(OperationContext opContext,
                                      org.apache.directory.shared.ldap.message.Request request)
                               throws java.lang.Exception
Extracts request controls from a request to populate into an OperationContext.

Parameters:
opContext - the context to populate with request controls
request - the request to extract controls from
Throws:
java.lang.Exception

setResponseControls

public static void setResponseControls(OperationContext opContext,
                                       org.apache.directory.shared.ldap.message.Response response)
                                throws java.lang.Exception
Extracts response controls from a an OperationContext to populate into a Response object.

Parameters:
opContext - the context to extract controls from
response - the response to populate with response controls
Throws:
java.lang.Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.