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

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

public class ExtendedResponseImpl
extends AbstractResultResponse
implements ExtendedResponse

Lockable ExtendedResponse implementation

Version:
$Rev: 596943 $
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)
           
ExtendedResponseImpl(int id, java.lang.String oid)
          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 setOid(java.lang.String oid)
           
 void setResponse(byte[] value)
          Sets the response 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, addAll, get, getControls, getMessageId, getType, hasControl, hashCode, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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, addAll, get, getControls, getMessageId, getType, hasControl, 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,
                            java.lang.String oid)
Creates a Lockable ExtendedResponse as a reply to an ExtendedRequest.

Parameters:
id - the session unique message id

ExtendedResponseImpl

public ExtendedResponseImpl(int id)
Method Detail

getResponse

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

Returns:
the response specific encoded response values.

setResponse

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

Parameters:
value - the response specific encoded response values.

setOid

public void setOid(java.lang.String oid)

getResponseName

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

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).

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-2009 Apache Software Foundation. All Rights Reserved.