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

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
      extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResponse
          extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResultResponse
              extended by org.apache.directory.shared.ldap.message.ExtendedResponseImpl
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.ExtendedResponse, InternalExtendedResponse, InternalMessage, InternalResponse, InternalResultResponse
Direct Known Subclasses:
CancelResponse, CertGenerationResponse, GracefulDisconnect, GracefulShutdownResponse, LaunchDiagnosticUiResponse, NoticeOfDisconnect, StoredProcedureResponse

public class ExtendedResponseImpl
extends InternalAbstractResultResponse
implements InternalExtendedResponse

Lockable ExtendedResponse implementation

Version:
$Rev: 905344 $
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.internal.InternalExtendedResponse
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.internal.InternalAbstractResultResponse
getLdapResult, toString
 
Methods inherited from class org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
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.internal.InternalResultResponse
getLdapResult
 
Methods inherited from interface org.apache.directory.shared.ldap.message.internal.InternalMessage
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.

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

setResponse

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

Specified by:
setResponse in interface InternalExtendedResponse
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).

Specified by:
getResponseName in interface InternalExtendedResponse
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 InternalExtendedResponse
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 InternalAbstractResultResponse
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-2011 Apache Software Foundation. All Rights Reserved.