Class GracefulShutdownResponseImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractResponse
-
- org.apache.directory.api.ldap.model.message.AbstractResultResponse
-
- org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
-
- org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownResponseImpl
-
- All Implemented Interfaces:
GracefulShutdownResponse
,ExtendedResponse
,Message
,Response
,ResultResponse
public class GracefulShutdownResponseImpl extends ExtendedResponseImpl implements GracefulShutdownResponse
The response sent back from the server when aGracefulShutdownRequestImpl
extended operation is sent. Delivery of this response may block until all connected clients are sent a GracefulDisconnect unsolicited notification.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownResponse
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description GracefulShutdownResponseImpl()
Instantiates a new graceful shutdown response.GracefulShutdownResponseImpl(int messageId)
Instantiates a new graceful shutdown response.GracefulShutdownResponseImpl(int messageId, ResultCodeEnum rcode)
Instantiates a new graceful shutdown response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.String
getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).int
hashCode()
void
setResponseName(String oid)
Sets the OID uniquely identifying this extended response (a.k.a. its name).-
Methods inherited from class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
toString
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
GracefulShutdownResponseImpl
public GracefulShutdownResponseImpl(int messageId, ResultCodeEnum rcode)
Instantiates a new graceful shutdown response.- Parameters:
messageId
- the message idrcode
- the result code
-
GracefulShutdownResponseImpl
public GracefulShutdownResponseImpl(int messageId)
Instantiates a new graceful shutdown response.- Parameters:
messageId
- the message id
-
GracefulShutdownResponseImpl
public GracefulShutdownResponseImpl()
Instantiates a new graceful shutdown response.
-
-
Method Detail
-
getResponseName
public String getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
getResponseName
in interfaceExtendedResponse
- Overrides:
getResponseName
in classExtendedResponseImpl
- Returns:
- the OID of the extended response type.
-
setResponseName
public void setResponseName(String oid)
Sets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
setResponseName
in interfaceExtendedResponse
- Overrides:
setResponseName
in classExtendedResponseImpl
- Parameters:
oid
- the OID of the extended response type.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classExtendedResponseImpl
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
Checks to see if an object equals this ExtendedRequest.- Overrides:
equals
in classExtendedResponseImpl
- Parameters:
obj
- the object to be checked for equality- Returns:
- true if the obj equals this ExtendedRequest, false otherwise
-
-