public class AbstractRequest extends AbstractMessage implements Request
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, toString
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
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 Request
public boolean equals(Object obj)
equals
in class AbstractMessage
obj
- the object to compare this Message to for equalitypublic int hashCode()
hashCode
in class AbstractMessage
Object.hashCode()
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.