public class HttpServletNetworkRequestEvent extends AbstractNetworkProtocolRequestEvent implements HttpNetworkProtocolRequestEvent
NetworkProtocolEvent.NetworkTypeProtocolEvent.Typedata, origin| Constructor and Description |
|---|
HttpServletNetworkRequestEvent(java.lang.String origin,
int srcPort,
int dstPort,
java.lang.String srcIP,
java.lang.String dstIP) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDate()
Common HTTP metadata: return the date entry from the header.
|
java.lang.String |
getHeaderData(java.lang.String key)
Get the value of header information tied to this event.
|
java.lang.String |
getHost()
Common HTTP metadata: return the host entry from the header.
|
java.lang.String |
getHTTPOrigin()
Common HTTP metadata: return the origin entry from the header.
|
java.lang.String |
getLocalIPAddress()
Retrieve the IP address of the interface on which the request was received.
|
java.lang.String |
getMethod()
Get the http verb/method used from the incoming request.
|
NetworkProtocolEvent.NetworkType |
getNetworkType()
Get the network type of this ProtocolNetworkEvent
|
java.lang.String |
getReferer()
Common HTTP metadata: return the referer entry from the header.
|
java.lang.String |
getRemoteIPAddress()
Retrieve the IP address of the client that sent the request.
|
java.lang.String |
getURL()
Get the URL associated with the incoming request
|
java.lang.String |
getUserAgent()
Common HTTP metadata: return the user-agent entry from the header.
|
HttpServletNetworkRequestEvent |
withDate(java.lang.String date)
Common HTTP Metadata: Store the date into the header map
|
HttpServletNetworkRequestEvent |
withHeaderMap(java.util.Map<java.lang.String,java.lang.String> inputMap)
Populate the contents of the inputMap into the header map.
|
HttpServletNetworkRequestEvent |
withHost(java.lang.String host)
Common HTTP Metadata: Store the host into the header map
|
HttpServletNetworkRequestEvent |
withHTTPOrigin(java.lang.String origin)
Common HTTP Metadata: Store the origin into the header map
|
HttpServletNetworkRequestEvent |
withMethod(java.lang.String method)
Store the HTTP method/verb into this event
|
HttpServletNetworkRequestEvent |
withReferer(java.lang.String referer)
Common HTTP Metadata: Store the referer into the header map
|
HttpServletNetworkRequestEvent |
withRequest(java.lang.Object request)
Store the literal HTTP request object into this event.
|
HttpServletNetworkRequestEvent |
withURL(java.lang.String url)
Store the HTTP URL from the incoming request into this event.
|
HttpServletNetworkRequestEvent |
withUserAgent(java.lang.String userAgent)
Common HTTP Metadata: Store the user-agent into the header map
|
getDestinationIP, getDestinationPort, getSourceIP, getSourcePort, getTypegetDestinationAddress, getRequest, getSourceAddressgetHeaderMap, withHeaderDatagetData, getOrigin, withDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinationIP, getDestinationPort, getSourceIP, getSourcePortgetDestinationAddress, getRequest, getSourceAddressgetTypepublic HttpServletNetworkRequestEvent(java.lang.String origin,
int srcPort,
int dstPort,
java.lang.String srcIP,
java.lang.String dstIP)
public HttpServletNetworkRequestEvent withDate(java.lang.String date)
date - the date valuepublic HttpServletNetworkRequestEvent withHost(java.lang.String host)
host - the host valuepublic HttpServletNetworkRequestEvent withHTTPOrigin(java.lang.String origin)
origin - the Origin valuepublic HttpServletNetworkRequestEvent withReferer(java.lang.String referer)
referer - the referer valuepublic HttpServletNetworkRequestEvent withUserAgent(java.lang.String userAgent)
userAgent - the user-agent valuepublic HttpServletNetworkRequestEvent withHeaderMap(java.util.Map<java.lang.String,java.lang.String> inputMap)
withHeaderMap in class AbstractProtocolEventinputMap - the input map to add onto the header map.public HttpServletNetworkRequestEvent withMethod(java.lang.String method)
method - The HTTP method/verb. Can be "POST", "GET", "PUT", etcpublic HttpServletNetworkRequestEvent withURL(java.lang.String url)
url - the URL from the request.public HttpServletNetworkRequestEvent withRequest(java.lang.Object request)
withRequest in class AbstractProtocolRequestEventrequest - the HTTP request object. Most commonly the ServletRequest object.public java.lang.String getHeaderData(java.lang.String key)
getHeaderData in interface ProtocolEventgetHeaderData in class AbstractProtocolEventkey - the name of the headerpublic java.lang.String getDate()
getDate in interface HttpNetworkProtocolRequestEventpublic java.lang.String getHost()
getHost in interface HttpNetworkProtocolRequestEventpublic java.lang.String getHTTPOrigin()
getHTTPOrigin in interface HttpNetworkProtocolRequestEventpublic java.lang.String getReferer()
getReferer in interface HttpNetworkProtocolRequestEventpublic java.lang.String getUserAgent()
getUserAgent in interface HttpNetworkProtocolRequestEventpublic java.lang.String getMethod()
getMethod in interface HttpNetworkProtocolRequestEventpublic java.lang.String getURL()
getURL in interface HttpNetworkProtocolRequestEventpublic java.lang.String getRemoteIPAddress()
getRemoteIPAddress in interface HttpNetworkProtocolRequestEventpublic java.lang.String getLocalIPAddress()
getLocalIPAddress in interface HttpNetworkProtocolRequestEventpublic NetworkProtocolEvent.NetworkType getNetworkType()
getNetworkType in interface NetworkProtocolEvent