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 classprotected static classParse 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 inthash code seed.static final intBER protocol number.List of references.private static final DERPathDER path to referral URI. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SearchResultReference(DERBuffer buffer) Creates a new search result reference. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new URI to this reference.voidaddUris(Collection<String> uris) Adds a new URI to this reference.builder()Creates a builder for this class.booleanString[]getUris()inthashCode()Returns the hash code for this object.static SearchResultReferenceReturns a new reference whose URIs are sorted naturally.toString()Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, getControls, getMessageID, setMessageIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
equalsin classAbstractMessage
-
hashCode
public int hashCode()Description copied from class:AbstractMessageReturns the hash code for this object.- Specified by:
hashCodein classAbstractMessage- Returns:
- hash code
-
toString
- Overrides:
toStringin 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
-