Package org.ldaptive.control.util
Class SyncReplCookie
- java.lang.Object
-
- org.ldaptive.control.util.SyncReplCookie
-
public class SyncReplCookie extends Object
Class for parsing a sync repl cookie. See https://www.openldap.org/doc/admin23/syncrepl.html and https://www.openldap.org/faq/data/cache/1145.html
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SyncReplCookie.CSN
Class representing a Change Sequence Number.
-
Field Summary
Fields Modifier and Type Field Description private SyncReplCookie.CSN
csn
Cookie CSN.private String
rid
Cookie RID.
-
Constructor Summary
Constructors Constructor Description SyncReplCookie(String cookie)
Creates a new sync repl cookie.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncReplCookie.CSN
getCsn()
Returns the CSN.String
getRid()
Returns the RID.private static Map<String,String>
parseCookie(String cookie)
Parses the name/value pairs in the supplied cookie.
-
-
-
Field Detail
-
rid
private final String rid
Cookie RID.
-
csn
private final SyncReplCookie.CSN csn
Cookie CSN.
-
-
Constructor Detail
-
SyncReplCookie
public SyncReplCookie(String cookie)
Creates a new sync repl cookie.- Parameters:
cookie
- to parse
-
-
Method Detail
-
getRid
public String getRid()
Returns the RID.- Returns:
- cookie RID
-
getCsn
public SyncReplCookie.CSN getCsn()
Returns the CSN.- Returns:
- cookie CSN
-
-