|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ldap.LdapProtocolUtils
public class LdapProtocolUtils
Utility methods used by the LDAP protocol service.
| Field Summary | |
|---|---|
static String |
COOKIE_DELIM
A delimiter for the replicaId |
static String |
CSN_PREFIX
the prefix for Csn value |
static String |
REPLICA_ID_PREFIX
the prefix for replicaId value |
| Constructor Summary | |
|---|---|
LdapProtocolUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
createCookie(int replicaId,
String csn)
|
static String |
getCsn(String cookieString)
returns the CSN present in cookie |
static int |
getReplicaId(String cookieString)
returns the replica id present in cookie |
static boolean |
isValidCookie(String cookieString)
Check the cookie syntax. |
static void |
setRequestControls(org.apache.directory.server.core.api.interceptor.context.OperationContext opContext,
org.apache.directory.shared.ldap.model.message.Request request)
Extracts request controls from a request to populate into an OperationContext. |
static void |
setResponseControls(org.apache.directory.server.core.api.interceptor.context.OperationContext opContext,
org.apache.directory.shared.ldap.model.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 |
| Field Detail |
|---|
public static final String COOKIE_DELIM
public static final String REPLICA_ID_PREFIX
public static final String CSN_PREFIX
| Constructor Detail |
|---|
public LdapProtocolUtils()
| Method Detail |
|---|
public static void setRequestControls(org.apache.directory.server.core.api.interceptor.context.OperationContext opContext,
org.apache.directory.shared.ldap.model.message.Request request)
throws Exception
opContext - the context to populate with request controlsrequest - the request to extract controls from
Exception
public static void setResponseControls(org.apache.directory.server.core.api.interceptor.context.OperationContext opContext,
org.apache.directory.shared.ldap.model.message.Response response)
throws Exception
opContext - the context to extract controls fromresponse - the response to populate with response controls
Exception
public static byte[] createCookie(int replicaId,
String csn)
public static boolean isValidCookie(String cookieString)
public static String getCsn(String cookieString)
cookieString - the cookie
public static int getReplicaId(String cookieString)
cookieString - the cookie
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||