org.apache.directory.shared.ldap.message
Class ExtendedResponseImpl

java.lang.Object
  extended byorg.apache.directory.shared.ldap.message.AbstractMessage
      extended byorg.apache.directory.shared.ldap.message.AbstractResponse
          extended byorg.apache.directory.shared.ldap.message.AbstractResultResponse
              extended byorg.apache.directory.shared.ldap.message.ExtendedResponseImpl
All Implemented Interfaces:
ExtendedResponse, javax.naming.ldap.ExtendedResponse, Message, Response, ResultResponse, java.io.Serializable
Direct Known Subclasses:
GracefulDisconnect, GracefulShutdownResponse, LaunchDiagnosticUiResponse, NoticeOfDisconnect

public class ExtendedResponseImpl
extends AbstractResultResponse
implements ExtendedResponse

Lockable ExtendedResponse implementation

Version:
$Rev: 379008 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
protected  java.lang.String oid
          Object identifier for the extended response
protected  byte[] value
          Values encoded in the extended response payload
 
Fields inherited from interface org.apache.directory.shared.ldap.message.ExtendedResponse
TYPE
 
Constructor Summary
ExtendedResponseImpl(int id)
          Creates a Lockable ExtendedResponse as a reply to an ExtendedRequest.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks to see if an object equals this ExtendedRequest.
 byte[] getEncodedValue()
           
 java.lang.String getID()
           
 byte[] getResponse()
          Gets the reponse OID specific encoded response values.
 java.lang.String getResponseName()
          Gets the OID uniquely identifying this extended response (a.k.a.
 void setResponse(byte[] value)
          Sets the reponse OID specific encoded response values.
 void setResponseName(java.lang.String oid)
          Sets the OID uniquely identifying this extended response (a.k.a.
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractResultResponse
getLdapResult, toString
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractMessage
add, get, getControls, getMessageId, getType, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.ResultResponse
getLdapResult
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
add, get, getControls, getMessageId, getType, put, remove
 

Field Detail

oid

protected java.lang.String oid
Object identifier for the extended response


value

protected byte[] value
Values encoded in the extended response payload

Constructor Detail

ExtendedResponseImpl

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

Parameters:
id - the session unique message id
Method Detail

getResponse

public byte[] getResponse()
Gets the reponse OID specific encoded response values.

Specified by:
getResponse in interface ExtendedResponse
Returns:
the response specific encoded response values.

setResponse

public void setResponse(byte[] value)
Sets the reponse OID specific encoded response values.

Specified by:
setResponse in interface ExtendedResponse
Parameters:
value - the response specific encoded response values.

getResponseName

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

Specified by:
getResponseName in interface ExtendedResponse
Returns:
the OID of the extended response type.

setResponseName

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

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

equals

public boolean equals(java.lang.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

getID

public java.lang.String getID()
Specified by:
getID in interface javax.naming.ldap.ExtendedResponse

getEncodedValue

public byte[] getEncodedValue()
Specified by:
getEncodedValue in interface javax.naming.ldap.ExtendedResponse


Copyright © 2003-2006 . All Rights Reserved.