public abstract class AbstractProtocolResponseEvent extends AbstractProtocolEvent implements ProtocolResponseEvent
ProtocolEvent.Typedata, origin| Constructor and Description |
|---|
AbstractProtocolResponseEvent(java.lang.String origin,
ProtocolRequestEvent requestEvent) |
| Modifier and Type | Method and Description |
|---|---|
ProtocolRequestEvent |
getProtocolRequestEvent() |
java.lang.Object |
getResponse()
Get the protocol-level response object
|
java.lang.String |
getStatusIndicator()
Returns the status indicator of this response event.
|
AbstractProtocolResponseEvent |
withResponse(java.lang.Object response)
Add the response object into this protocol event.
|
AbstractProtocolResponseEvent |
withStatusIndicator(java.lang.String statusIndicator)
Add the status indicator into this event.
|
getHeaderData, getHeaderMap, withHeaderData, withHeaderMapgetData, getOrigin, withDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeaderData, getTypepublic AbstractProtocolResponseEvent(java.lang.String origin,
ProtocolRequestEvent requestEvent)
public AbstractProtocolResponseEvent withResponse(java.lang.Object response)
response - The response object associated with this event.public AbstractProtocolResponseEvent withStatusIndicator(java.lang.String statusIndicator)
statusIndicator - The string status indicator.public ProtocolRequestEvent getProtocolRequestEvent()
getProtocolRequestEvent in interface ProtocolResponseEventpublic java.lang.Object getResponse()
getResponse in interface ProtocolResponseEventpublic java.lang.String getStatusIndicator()
getStatusIndicator in interface ProtocolResponseEvent