Interface HttpNetworkProtocolRequestEvent
-
- All Superinterfaces:
Event,NetworkProtocolEvent,NetworkProtocolRequestEvent,ProtocolEvent,ProtocolRequestEvent
- All Known Implementing Classes:
HttpServletNetworkRequestEvent
public interface HttpNetworkProtocolRequestEvent extends NetworkProtocolRequestEvent
An event that occurs prior to serving a http, network request. This event holds pertinent http data that identifies a specific request.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.NetworkProtocolEvent
NetworkProtocolEvent.NetworkType
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.ProtocolEvent
ProtocolEvent.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDate()Common HTTP metadata: return the date entry from the header.java.lang.StringgetHost()Common HTTP metadata: return the host entry from the header.java.lang.StringgetHTTPOrigin()Common HTTP metadata: return the origin entry from the header.java.lang.StringgetLocalIPAddress()Retrieve the IP address of the interface on which the request was received.java.lang.StringgetMethod()Get the http verb/method used from the incoming request.java.lang.StringgetReferer()Common HTTP metadata: return the referer entry from the header.java.lang.StringgetRemoteIPAddress()Retrieve the IP address of the client that sent the request.java.lang.StringgetURL()Get the URL associated with the incoming requestjava.lang.StringgetUserAgent()Common HTTP metadata: return the user-agent entry from the header.-
Methods inherited from interface software.amazon.disco.agent.event.NetworkProtocolEvent
getNetworkType
-
Methods inherited from interface software.amazon.disco.agent.event.NetworkProtocolRequestEvent
getDestinationIP, getDestinationPort, getSourceIP, getSourcePort
-
Methods inherited from interface software.amazon.disco.agent.event.ProtocolEvent
getHeaderData, getType
-
Methods inherited from interface software.amazon.disco.agent.event.ProtocolRequestEvent
getDestinationAddress, getRequest, getSourceAddress
-
-
-
-
Method Detail
-
getDate
java.lang.String getDate()
Common HTTP metadata: return the date entry from the header.- Returns:
- The date value
-
getHost
java.lang.String getHost()
Common HTTP metadata: return the host entry from the header.- Returns:
- The host value
-
getHTTPOrigin
java.lang.String getHTTPOrigin()
Common HTTP metadata: return the origin entry from the header.- Returns:
- The origin value
-
getReferer
java.lang.String getReferer()
Common HTTP metadata: return the referer entry from the header. (Please note the word "referer" vs "referrer")- Returns:
- The referer value
-
getUserAgent
java.lang.String getUserAgent()
Common HTTP metadata: return the user-agent entry from the header.- Returns:
- The user-agent value
-
getMethod
java.lang.String getMethod()
Get the http verb/method used from the incoming request.- Returns:
- The method value (POST, GET, PUT, etc)
-
getURL
java.lang.String getURL()
Get the URL associated with the incoming request- Returns:
- The incoming URL request
-
getRemoteIPAddress
java.lang.String getRemoteIPAddress()
Retrieve the IP address of the client that sent the request.- Returns:
- The remote IP address
-
getLocalIPAddress
java.lang.String getLocalIPAddress()
Retrieve the IP address of the interface on which the request was received.- Returns:
- The local IP address
-
-