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
public class UnsolicitedNotification extends ExtendedResponse
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 Classes Modifier and Type Class Description static classUnsolicitedNotification.Builder-
Nested classes/interfaces inherited from class org.ldaptive.extended.ExtendedResponse
ExtendedResponse.ResponseNameHandler, ExtendedResponse.ResponseValueHandler
-
Nested 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
Fields Modifier and Type Field Description private static intHASH_CODE_SEEDhash code seed.-
Fields inherited from class org.ldaptive.extended.ExtendedResponse
PROTOCOL_OP
-
Fields inherited from interface org.ldaptive.Result
ENCODE_CNTRL_CHARS
-
-
Constructor Summary
Constructors Constructor Description UnsolicitedNotification()Default constructor.UnsolicitedNotification(DERBuffer buffer)Creates a new unsolicited notification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnsolicitedNotification.Builderbuilder()Creates a builder for this class.booleanequals(Object o)inthashCode()Returns the hash code for this object.protected voidsetMessageID(int id)-
Methods inherited from class org.ldaptive.extended.ExtendedResponse
getResponseName, getResponseValue, setResponseName, setResponseValue, toString
-
Methods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, equalsResult, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCode
-
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, equalsMessage, getControls, getMessageID
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageID
-
Methods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage, isSuccess
-
-
-
-
Field Detail
-
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnsolicitedNotification
public UnsolicitedNotification()
Default constructor.
-
UnsolicitedNotification
public UnsolicitedNotification(DERBuffer buffer)
Creates a new unsolicited notification.- Parameters:
buffer- to decode
-
-
Method Detail
-
setMessageID
protected void setMessageID(int id)
- Overrides:
setMessageIDin classAbstractMessage
-
equals
public boolean equals(Object o)
- 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
public static UnsolicitedNotification.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-