com.sun.jndi.ldap.ext
Class EmptyExtendedResponse

java.lang.Object
  extended by com.sun.jndi.ldap.ext.EmptyExtendedResponse
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.ExtendedResponse

 class EmptyExtendedResponse
extends java.lang.Object
implements javax.naming.ldap.ExtendedResponse

This class represents an LDAP extended operation response with an OID and empty response value. The response comprises an optional object identifier and an optional ASN.1 BER encoded value. For extended responses which do not have value to return, this class can be used.

See Also:
ExtendedResponse, ExtendedRequest

Field Summary
private  java.lang.String oid
          OID of the extended response
private static long serialVersionUID
           
 
Constructor Summary
EmptyExtendedResponse(java.lang.String oid)
           
 
Method Summary
 byte[] getEncodedValue()
          Since the response has no defined value, null is always returned.
 java.lang.String getID()
          Retrieves the object identifier of the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oid

private java.lang.String oid
OID of the extended response


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

EmptyExtendedResponse

EmptyExtendedResponse(java.lang.String oid)
Method Detail

getID

public java.lang.String getID()
Retrieves the object identifier of the response. The LDAP protocol specifies that the response object identifier is optional. If the server does not send it, the response will contain no ID (i.e. null).

Specified by:
getID in interface javax.naming.ldap.ExtendedResponse
Returns:
A possibly null object identifier string representing the LDAP ExtendedResponse.responseName component.

getEncodedValue

public byte[] getEncodedValue()
Since the response has no defined value, null is always returned.

Specified by:
getEncodedValue in interface javax.naming.ldap.ExtendedResponse
Returns:
The null value.