Class AbstractExtendedRequest
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
- All Implemented Interfaces:
ExtendedRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
- Direct Known Subclasses:
OpaqueExtendedRequest
ExtendedRequest implementation.
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringExtended request's Object Identifier or requestNameFields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates an ExtendedRequest implementing object used to perform extended protocol operation on the server.AbstractExtendedRequest(int id) Creates an ExtendedRequest implementing object used to perform extended protocol operation on the server. -
Method Summary
Modifier and TypeMethodDescriptionaddAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.booleanChecks to see if an object equals this ExtendedRequest.Gets the Object Identifier corresponding to the extended request type.Get the extended responseGets the protocol response message type for this request which produces at least one response.abstract ExtendedResponseThe result containing response for this request.inthashCode()removeControl(Control control) Deletes a control removing it from this Message.setMessageId(int messageId) Sets the Message ID for this requestsetRequestName(String newOid) Sets the Object Identifier corresponding to the extended request type.voidsetResponse(ExtendedResponse response) Set the extended responsetoString()Get a String representation of an Extended RequestMethods inherited from class AbstractRequest
hasResponseMethods inherited from class AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponse
-
Field Details
-
oid
Extended request's Object Identifier or requestName
-
-
Constructor Details
-
AbstractExtendedRequest
public AbstractExtendedRequest()Creates an ExtendedRequest implementing object used to perform extended protocol operation on the server. -
AbstractExtendedRequest
public AbstractExtendedRequest(int id) Creates an ExtendedRequest implementing object used to perform extended protocol operation on the server.- Parameters:
id- the sequential message identifier
-
-
Method Details
-
getRequestName
Gets the Object Identifier corresponding to the extended request type. This is the requestName portion of the ext. req. PDU.- Specified by:
getRequestNamein interfaceExtendedRequest- Returns:
- the dotted-decimal representation as a String of the OID
-
setRequestName
Sets the Object Identifier corresponding to the extended request type.- Specified by:
setRequestNamein interfaceExtendedRequest- Parameters:
newOid- the dotted-decimal representation as a String of the OID- Returns:
- The ExtendedRequest instance
-
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceExtendedRequest- Specified by:
setMessageIdin interfaceMessage- Overrides:
setMessageIdin classAbstractMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceExtendedRequest- Specified by:
addControlin interfaceMessage- Overrides:
addControlin classAbstractMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceExtendedRequest- Specified by:
addAllControlsin interfaceMessage- Overrides:
addAllControlsin classAbstractMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceExtendedRequest- Specified by:
removeControlin interfaceMessage- Overrides:
removeControlin classAbstractMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
getResponseType
Gets the protocol response message type for this request which produces at least one response.- Specified by:
getResponseTypein interfaceSingleReplyRequest- Returns:
- the message type of the response.
-
getResultResponse
The result containing response for this request.- Specified by:
getResultResponsein interfaceResultResponseRequest- Returns:
- the result containing response for this request
-
getResponse
-
setResponse
Set the extended response- Parameters:
response- the response to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractRequest- Returns:
- the instance's hash code
- See Also:
-
equals
Checks to see if an object equals this ExtendedRequest.- Overrides:
equalsin classAbstractRequest- Parameters:
obj- the object to be checked for equality- Returns:
- true if the obj equals this ExtendedRequest, false otherwise
-
toString
-