Package org.ldaptive.extended
Class UnsolicitedNotification
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.AbstractResult
org.ldaptive.extended.ExtendedResponse
org.ldaptive.extended.UnsolicitedNotification
- Direct Known Subclasses:
NoticeOfDisconnection
LDAP unsolicited notification defined as:
ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
COMPONENTS OF LDAPResult,
responseName [10] LDAPOID OPTIONAL,
responseValue [11] OCTET STRING OPTIONAL }
where the messageID is always zero.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ldaptive.extended.ExtendedResponse
ExtendedResponse.ResponseNameHandler, ExtendedResponse.ResponseValueHandlerNested classes/interfaces inherited from class org.ldaptive.AbstractResult
AbstractResult.AbstractBuilder<B,T extends AbstractResult>, AbstractResult.DiagnosticMessageHandler, AbstractResult.MatchedDNHandler, AbstractResult.ReferralHandler, AbstractResult.ResultCodeHandler Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler -
Field Summary
FieldsFields inherited from class org.ldaptive.extended.ExtendedResponse
PROTOCOL_OP -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.UnsolicitedNotification(DERBuffer buffer) Creates a new unsolicited notification. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder for this class.booleaninthashCode()Returns the hash code for this object.protected voidsetMessageID(int id) Sets the message ID.Methods inherited from class org.ldaptive.extended.ExtendedResponse
getResponseName, getResponseValue, setResponseName, setResponseValue, toStringMethods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, equalsResult, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCodeMethods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, equalsMessage, getControls, getMessageIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageIDMethods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage, isSuccess
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
-
Constructor Details
-
UnsolicitedNotification
public UnsolicitedNotification()Default constructor. -
UnsolicitedNotification
Creates a new unsolicited notification.- Parameters:
buffer- to decode
-
-
Method Details
-
setMessageID
protected void setMessageID(int id) Description copied from class:AbstractMessageSets the message ID.- Overrides:
setMessageIDin classAbstractMessage- Parameters:
id- of the message
-
equals
- Overrides:
equalsin classExtendedResponse
-
hashCode
public int hashCode()Description copied from class:AbstractMessageReturns the hash code for this object.- Overrides:
hashCodein classExtendedResponse- Returns:
- hash code
-
builder
Creates a builder for this class.- Returns:
- new builder
-