Package org.ldaptive
Class SearchResultReference
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.SearchResultReference
- All Implemented Interfaces:
Message
LDAP search result entry defined as:
SearchResultReference ::= [APPLICATION 19] SEQUENCE SIZE (1..MAX) OF uri URI *
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
protected static class
Parse handler implementation for the referral URL.Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.AbstractBuilder<B,
T extends AbstractMessage>, AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
hash code seed.static final int
BER protocol number.List of references.private static final DERPath
DER path to referral URI. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SearchResultReference
(DERBuffer buffer) Creates a new search result reference. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new URI to this reference.void
addUris
(Collection<String> uris) Adds a new URI to this reference.builder()
Creates a builder for this class.boolean
String[]
getUris()
int
hashCode()
Returns the hash code for this object.static SearchResultReference
Returns a new reference whose URIs are sorted naturally.toString()
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, getControls, getMessageID, setMessageID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ldaptive.Message
getControl
-
Field Details
-
PROTOCOL_OP
public static final int PROTOCOL_OPBER protocol number.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
REFERRAL_URI_PATH
DER path to referral URI. -
references
List of references.
-
-
Constructor Details
-
SearchResultReference
public SearchResultReference()Default constructor. -
SearchResultReference
Creates a new search result reference.- Parameters:
buffer
- to decode
-
-
Method Details
-
getUris
-
addUris
Adds a new URI to this reference.- Parameters:
uri
- to add
-
addUris
Adds a new URI to this reference.- Parameters:
uris
- to add
-
equals
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()Description copied from class:AbstractMessage
Returns the hash code for this object.- Specified by:
hashCode
in classAbstractMessage
- Returns:
- hash code
-
toString
- Overrides:
toString
in classAbstractMessage
-
sort
Returns a new reference whose URIs are sorted naturally.- Parameters:
ref
- reference to sort- Returns:
- sorted reference
-
builder
Creates a builder for this class.- Returns:
- new builder
-