org.apache.directory.api.ldap.model.message
Class ExtendedResponseImpl

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
All Implemented Interfaces:
ExtendedResponse, Message, Response, ResultResponse
Direct Known Subclasses:
ExtendedNoDResponse, NoticeOfDisconnect

public class ExtendedResponseImpl
extends AbstractResultResponse
implements ExtendedResponse

A simple ExtendedResponse implementation.

Author:
Apache Directory Project

Field Summary
protected  String responseName
          Object identifier for the extended response
 
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.model.message.ExtendedResponse
TYPE
 
Constructor Summary
ExtendedResponseImpl(int id)
          Creates an ExtendedResponse as a reply to an ExtendedRequest.
ExtendedResponseImpl(int id, String responseName)
          Creates an ExtendedResponse as a reply to an ExtendedRequest.
ExtendedResponseImpl(String responseName)
          Creates an ExtendedResponse as a reply to an ExtendedRequest.
 
Method Summary
 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.
 int hashCode()
          
 void setResponseName(String responseName)
          Sets the OID uniquely identifying this extended response (a.k.a.
 String toString()
          Get a String representation of an ExtendedResponse
 
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
 

Field Detail

responseName

protected String responseName
Object identifier for the extended response

Constructor Detail

ExtendedResponseImpl

public ExtendedResponseImpl(String responseName)
Creates an ExtendedResponse as a reply to an ExtendedRequest.

Parameters:
responseName - the ExtendedResponse's name

ExtendedResponseImpl

public ExtendedResponseImpl(int id,
                            String responseName)
Creates an ExtendedResponse as a reply to an ExtendedRequest.

Parameters:
id - the session unique message id
responseName - the ExtendedResponse's name

ExtendedResponseImpl

public ExtendedResponseImpl(int id)
Creates an ExtendedResponse as a reply to an ExtendedRequest.

Parameters:
id - the session unique message id
Method Detail

getResponseName

public String getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).

Specified by:
getResponseName in interface ExtendedResponse
Returns:
the responseName of the extended response

setResponseName

public void setResponseName(String responseName)
Sets the OID uniquely identifying this extended response (a.k.a. its name).

Specified by:
setResponseName in interface ExtendedResponse
Parameters:
responseName - the OID of the extended response type.

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractResultResponse
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 class AbstractResultResponse
Parameters:
obj - the object to be checked for equality
Returns:
true if the obj equals this ExtendedRequest, false otherwise

toString

public String toString()
Get a String representation of an ExtendedResponse

Overrides:
toString in class AbstractResultResponse
Returns:
An ExtendedResponse String


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