|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.LDAPRequest
com.unboundid.ldap.sdk.UpdatableLDAPRequest
@NotExtensible @ThreadSafety(level=NOT_THREADSAFE) public abstract class UpdatableLDAPRequest
This class is the superclass of all types of LDAP requests that can be altered. It provides methods for updating the set of controls to include as part of the request and for configuring a response timeout, which is the maximum length of time that the SDK should wait for a response to the request before returning an error back to the caller.
Constructor Summary | |
---|---|
protected |
UpdatableLDAPRequest(Control[] controls)
Creates a new LDAP request with the provided set of controls. |
Method Summary | |
---|---|
void |
addControl(Control control)
Adds the provided control to the set of controls for this request. |
void |
addControls(Control... controls)
Adds the provided controls to the set of controls for this request. |
void |
clearControls()
Removes all controls from this request. |
boolean |
removeControl(Control control)
Removes the provided control from the set of controls for this request. |
Control |
removeControl(java.lang.String oid)
Removes the control with the specified OID from the set of controls for this request. |
Control |
replaceControl(Control control)
Replaces the control with the same OID as the provided control with the provided control. |
Control |
replaceControl(java.lang.String oid,
Control control)
Replaces the control with the specified OID with the provided control. |
void |
setControls(Control... controls)
Specifies the set of controls for this request. |
void |
setControls(java.util.List<Control> controls)
Specifies the set of controls for this request. |
Methods inherited from class com.unboundid.ldap.sdk.LDAPRequest |
---|
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getLastMessageID, getOperationType, getResponseTimeoutMillis, hasControl, hasControl, process, setFollowReferrals, setIntermediateResponseListener, setResponseTimeoutMillis, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.unboundid.ldap.sdk.ReadOnlyLDAPRequest |
---|
duplicate, duplicate, toCode |
Constructor Detail |
---|
protected UpdatableLDAPRequest(Control[] controls)
controls
- The set of controls to include in this LDAP request.Method Detail |
---|
public final void setControls(Control... controls)
controls
- The set of controls for this request.public final void setControls(java.util.List<Control> controls)
controls
- The set of controls for this request.public final void clearControls()
public final void addControl(Control control)
control
- The control to add to the set of controls for this
request. It must not be null
.public final void addControls(Control... controls)
controls
- The controls to add to the set of controls for this
request.public final Control removeControl(java.lang.String oid)
oid
- The OID of the control to remove. It must not be
null
.
null
if this request does
not have any control with the specified OID.public final boolean removeControl(Control control)
control
- The control to remove from the set of controls for this
request. It must not be null
.
true
if the control was found and removed, or
false
if not.public final Control replaceControl(Control control)
control
- The control to use in place of the existing control with
the same OID. It must not be null
.
null
if there was no
control with the same OID as the provided control.public final Control replaceControl(java.lang.String oid, Control control)
oid
- The OID of the control to replace with the provided
control. It must not be null
.control
- The control to use in place of the control with the
specified OID. It may be null
if the control
should be removed. It may have a different OID than the
OID of the control being replaced.
null
if there was no
control with the specified OID.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |