public abstract class AbstractProtocolEvent extends AbstractEvent implements ProtocolEvent
ProtocolEvent.Typedata, origin| Constructor and Description |
|---|
AbstractProtocolEvent(java.lang.String origin) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeaderData(java.lang.String key)
Deprecated.
deprecated in favour of
HeaderRetrievable which should be used wherever possible instead. |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderMap()
Get the internal header map.
|
AbstractProtocolEvent |
withHeaderData(java.lang.String key,
java.lang.String value)
Stores the key-value pair into the header map.
|
AbstractProtocolEvent |
withHeaderMap(java.util.Map<java.lang.String,java.lang.String> inputMap)
Populate the contents of the inputMap into the header map.
|
getData, getOrigin, withDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeprotected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderMap()
public AbstractProtocolEvent withHeaderMap(java.util.Map<java.lang.String,java.lang.String> inputMap)
inputMap - the input map to add onto the header map.public AbstractProtocolEvent withHeaderData(java.lang.String key, java.lang.String value)
key - the key used to associate a header mapping.value - The header value associated with the key in the header.@Deprecated public java.lang.String getHeaderData(java.lang.String key)
HeaderRetrievable which should be used wherever possible instead.getHeaderData in interface ProtocolEventkey - the name of the header