public abstract class AbstractRequest extends AbstractMessage implements Request
| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasResponse
Flag indicating whether or not this request returns a response.
|
(package private) static long |
serialVersionUID |
controls| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRequest(int id,
MessageTypeEnum type,
boolean hasResponse)
Subclasses must provide these parameters via a super constructor call.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks to see if two messages are equivalent.
|
int |
hashCode() |
boolean |
hasResponse()
Indicator flag used to determine whether or not this type of request
produces a reply.
|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdstatic final long serialVersionUID
private final boolean hasResponse
protected AbstractRequest(int id,
MessageTypeEnum type,
boolean hasResponse)
id - the sequential message identifiertype - the request type enumhasResponse - flag indicating if this request generates a responsepublic boolean hasResponse()
hasResponse in interface Requestpublic boolean equals(Object obj)
equals in class AbstractMessageobj - the object to compare this Message to for equalitypublic int hashCode()
hashCode in class AbstractMessageObject.hashCode()Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.