Class AbstractProtocolRequestEvent
- java.lang.Object
-
- software.amazon.disco.agent.event.AbstractEvent
-
- software.amazon.disco.agent.event.AbstractProtocolEvent
-
- software.amazon.disco.agent.event.AbstractProtocolRequestEvent
-
- All Implemented Interfaces:
Event,ProtocolEvent,ProtocolRequestEvent
- Direct Known Subclasses:
AbstractNetworkProtocolRequestEvent
public abstract class AbstractProtocolRequestEvent extends AbstractProtocolEvent implements ProtocolRequestEvent
This event stores information about the invoker of the protocol event.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.ProtocolEvent
ProtocolEvent.Type
-
-
Field Summary
-
Fields inherited from class software.amazon.disco.agent.event.AbstractEvent
data, origin
-
-
Constructor Summary
Constructors Constructor Description AbstractProtocolRequestEvent(java.lang.String origin, java.lang.String srcAddr, java.lang.String dstAddr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDestinationAddress()Get the destination address; i.e.java.lang.ObjectgetRequest()Get the protocol-level request objectjava.lang.StringgetSourceAddress()Get the source address; i.e.AbstractProtocolRequestEventwithRequest(java.lang.Object request)The literal request object stored in the protocol event.-
Methods inherited from class software.amazon.disco.agent.event.AbstractProtocolEvent
getHeaderData, getHeaderMap, withHeaderData, withHeaderMap
-
Methods inherited from class software.amazon.disco.agent.event.AbstractEvent
getData, getOrigin, withData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.disco.agent.event.ProtocolEvent
getHeaderData, getType
-
-
-
-
Method Detail
-
withRequest
public AbstractProtocolRequestEvent withRequest(java.lang.Object request)
The literal request object stored in the protocol event.- Parameters:
request- The request object associated with this protocol.- Returns:
- The request object.
-
getRequest
public java.lang.Object getRequest()
Get the protocol-level request object- Specified by:
getRequestin interfaceProtocolRequestEvent- Returns:
- the request object
-
getSourceAddress
public java.lang.String getSourceAddress()
Get the source address; i.e. the origin that invoked this protocol request.- Specified by:
getSourceAddressin interfaceProtocolRequestEvent- Returns:
- The source address
-
getDestinationAddress
public java.lang.String getDestinationAddress()
Get the destination address; i.e. the receiving end for this request.- Specified by:
getDestinationAddressin interfaceProtocolRequestEvent- Returns:
- The destination address
-
-