public abstract class AbstractExtendedRequest extends AbstractRequest implements ExtendedRequest
| Modifier and Type | Field and Description |
|---|---|
private String |
oid
Extended request's Object Identifier or requestName
|
private ExtendedResponse |
response
The associated response
|
(package private) static long |
serialVersionUID |
controls| Constructor and Description |
|---|
AbstractExtendedRequest()
Creates 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.
|
| 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.
|
boolean |
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.
|
String |
getRequestName()
Gets the Object Identifier corresponding to the extended request type.
|
ExtendedResponse |
getResponse() |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
abstract ExtendedResponse |
getResultResponse()
The result containing response for this request.
|
int |
hashCode() |
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 newOid)
Sets the Object Identifier corresponding to the extended request type.
|
void |
setResponse(ExtendedResponse response) |
String |
toString()
Get a String representation of an Extended Request
|
hasResponseget, getControl, getControls, getMessageId, getType, hasControl, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waithasResponseget, getControl, getControls, getMessageId, getType, hasControl, putstatic final long serialVersionUID
private String oid
private ExtendedResponse response
public AbstractExtendedRequest()
public AbstractExtendedRequest(int id)
id - the sequential message identifierpublic String getRequestName()
getRequestName in interface ExtendedRequestpublic ExtendedRequest setRequestName(String newOid)
setRequestName in interface ExtendedRequestnewOid - the dotted-decimal representation as a String of the OIDpublic ExtendedRequest setMessageId(int messageId)
setMessageId in interface ExtendedRequestsetMessageId in interface MessagesetMessageId in class AbstractMessagemessageId - The message Idpublic ExtendedRequest addControl(Control control)
addControl in interface ExtendedRequestaddControl in interface MessageaddControl in class AbstractMessagecontrol - the control to add.public ExtendedRequest addAllControls(Control[] controls)
addAllControls in interface ExtendedRequestaddAllControls in interface MessageaddAllControls in class AbstractMessagecontrols - the controls to add.public ExtendedRequest removeControl(Control control)
removeControl in interface ExtendedRequestremoveControl in interface MessageremoveControl in class AbstractMessagecontrol - the control to remove.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequestpublic abstract ExtendedResponse getResultResponse()
getResultResponse in interface ResultResponseRequestpublic ExtendedResponse getResponse()
public void setResponse(ExtendedResponse response)
response - the response to setpublic int hashCode()
hashCode in class AbstractRequestObject.hashCode()public boolean equals(Object obj)
equals in class AbstractRequestobj - the object to be checked for equalityCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.