org.apache.directory.api.ldap.extras.extended
Class GracefulShutdownResponseImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractResponse
          extended by org.apache.directory.api.ldap.model.message.AbstractResultResponse
              extended by org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
                  extended by org.apache.directory.api.ldap.extras.extended.GracefulShutdownResponseImpl
All Implemented Interfaces:
GracefulShutdownResponse, org.apache.directory.api.ldap.model.message.ExtendedResponse, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Response, org.apache.directory.api.ldap.model.message.ResultResponse

public class GracefulShutdownResponseImpl
extends org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
implements GracefulShutdownResponse

The response sent back from the server when a GracefulShutdownRequestImpl 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 class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
responseName
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResult
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
 
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.GracefulShutdownResponse
EXTENSION_OID
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
TYPE
 
Constructor Summary
GracefulShutdownResponseImpl()
          Instantiates a new graceful shutdown response.
GracefulShutdownResponseImpl(int messageId)
          Instantiates a new graceful shutdown response.
GracefulShutdownResponseImpl(int messageId, org.apache.directory.api.ldap.model.message.ResultCodeEnum rcode)
          Instantiates a new graceful shutdown response.
 
Method Summary
 boolean equals(Object obj)
          
 String getResponseName()
          Gets the OID uniquely identifying this extended response (a.k.a.
 int hashCode()
          
 void setResponseName(String oid)
          Sets the OID uniquely identifying this extended response (a.k.a.
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
 

Constructor Detail

GracefulShutdownResponseImpl

public GracefulShutdownResponseImpl(int messageId,
                                    org.apache.directory.api.ldap.model.message.ResultCodeEnum rcode)
Instantiates a new graceful shutdown response.

Parameters:
messageId - the message id
rcode - 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 interface org.apache.directory.api.ldap.model.message.ExtendedResponse
Overrides:
getResponseName in class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
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 interface org.apache.directory.api.ldap.model.message.ExtendedResponse
Overrides:
setResponseName in class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
Parameters:
oid - the OID of the extended response type.

hashCode

public int hashCode()

Overrides:
hashCode in class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl

equals

public boolean equals(Object obj)

Overrides:
equals in class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.