APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.jndi.ldap

pack-priv final Class UnsolicitedResponseImpl

extends Object
implements UnsolicitedNotification
Class Inheritance
All Implemented Interfaces
javax.naming.ldap.UnsolicitedNotification, javax.naming.ldap.HasControls, javax.naming.ldap.ExtendedResponse, java.io.Serializable
Imports
javax.naming.ldap.UnsolicitedNotification, .Control, javax.naming.NamingException, java.util.Vector

A concrete implementation of an UnsolicitedNotification.
Author
Rosanna Lee

Field Summary

Modifier and TypeField and Description
private Control[]
private NamingException
private byte[]
private String
private String[]
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
UnsolicitedResponseImpl(String oid, byte[] berVal, Vector<Vector<String>> ref, int status, String msg, String matchedDN, Control[] controls)

Method Summary

Modifier and TypeMethod and Description
public Control[]
getControls()

Implements javax.naming.ldap.HasControls.getControls.

Retrieves an array of Controls from the object that implements this interface.

public byte[]

Returns:

A possibly null byte array representing the ASN.1 BER encoded contents of the LDAP ExtendedResponse.response component.
getEncodedValue
()

Implements javax.naming.ldap.ExtendedResponse.getEncodedValue.

Retrieves the ASN.1 BER encoded value of the LDAP extended operation response.

public NamingException

Returns:

A possibly null exception as constructed using information sent by the server. If null, a "success" status was indicated by the server.
getException
()

Implements javax.naming.ldap.UnsolicitedNotification.getException.

Retrieves the exception as constructed using information sent by the server.

public String

Returns:

A possibly null object identifier string representing the LDAP ExtendedResponse.responseName component.
getID
()

Implements javax.naming.ldap.ExtendedResponse.getID.

Retrieves the object identifier of the response.

public String[]

Returns:

A possibly null array of referrals, each of which is represented by a URL string. If null, no referral was sent by the server.
getReferrals
()

Implements javax.naming.ldap.UnsolicitedNotification.getReferrals.

Retrieves the referral(s) sent by the server.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlsback to summary
private Control[] controls
exceptionback to summary
private NamingException exception
extensionValueback to summary
private byte[] extensionValue
oidback to summary
private String oid
referralsback to summary
private String[] referrals
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

UnsolicitedResponseImplback to summary
pack-priv UnsolicitedResponseImpl(String oid, byte[] berVal, Vector<Vector<String>> ref, int status, String msg, String matchedDN, Control[] controls)

Method Detail

getControlsback to summary
public Control[] getControls() throws NamingException

Implements javax.naming.ldap.HasControls.getControls.

Doc from javax.naming.ldap.HasControls.getControls.

Retrieves an array of Controls from the object that implements this interface. It is null if there are no controls.

Exceptions
NamingException:
If cannot return controls due to an error.
getEncodedValueback to summary
public byte[] getEncodedValue()

Implements javax.naming.ldap.ExtendedResponse.getEncodedValue.

Retrieves the ASN.1 BER encoded value of the LDAP extended operation response. Null is returned if the value is absent from the response sent by the LDAP server. The result is the raw BER bytes including the tag and length of the response value. It does not include the response OID.

Returns:byte[]

A possibly null byte array representing the ASN.1 BER encoded contents of the LDAP ExtendedResponse.response component.

getExceptionback to summary
public NamingException getException()

Implements javax.naming.ldap.UnsolicitedNotification.getException.

Retrieves the exception as constructed using information sent by the server.

Returns:NamingException

A possibly null exception as constructed using information sent by the server. If null, a "success" status was indicated by the server.

getIDback to summary
public String getID()

Implements javax.naming.ldap.ExtendedResponse.getID.

Retrieves the object identifier of the response.

Returns:String

A possibly null object identifier string representing the LDAP ExtendedResponse.responseName component.

getReferralsback to summary
public String[] getReferrals()

Implements javax.naming.ldap.UnsolicitedNotification.getReferrals.

Retrieves the referral(s) sent by the server.

Returns:String[]

A possibly null array of referrals, each of which is represented by a URL string. If null, no referral was sent by the server.