public interface ExtendedRequest extends SingleReplyRequest
4.12. Extended Operation An extension mechanism has been added in this version of LDAP, in order to allow additional operations to be defined for services not available elsewhere in this protocol, for instance digitally signed operations and results. The extended operation allows clients to make requests and receive responses with predefined syntaxes and semantics. These may be defined in RFCs or be private to particular implementations. Each request MUST have a unique OBJECT IDENTIFIER assigned to it. ExtendedRequest ::= [APPLICATION 23] SEQUENCE { requestName [0] LDAPOID, requestValue [1] OCTET STRING OPTIONAL } The requestName is a dotted-decimal representation of the OBJECT IDENTIFIER corresponding to the request. The requestValue is information in a form defined by that request, encapsulated inside an OCTET STRING.
Modifier and Type | Method and Description |
---|---|
ExtendedRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
ExtendedRequest |
addControl(Control control)
Adds a control to this Message.
|
String |
getRequestName()
Gets the Object Identifier corresponding to the extended request type.
|
ExtendedRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
ExtendedRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
ExtendedRequest |
setRequestName(String oid)
Sets the Object Identifier corresponding to the extended request type.
|
getResponseType
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
String getRequestName()
ExtendedRequest setRequestName(String oid)
oid
- the dotted-decimal representation as a String of the OIDExtendedRequest setMessageId(int messageId)
setMessageId
in interface Message
messageId
- The message IdExtendedRequest addControl(Control control)
addControl
in interface Message
control
- the control to add.ExtendedRequest addAllControls(Control[] controls)
addAllControls
in interface Message
controls
- the controls to add.ExtendedRequest removeControl(Control control)
removeControl
in interface Message
control
- the control to remove.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.