public class HttpInterface extends Object implements SentryInterface
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_INTERFACE
Name of the HTTP interface in Sentry.
|
Constructor and Description |
---|
HttpInterface(javax.servlet.http.HttpServletRequest request)
This constructor is for compatibility reasons and should not be used.
|
HttpInterface(javax.servlet.http.HttpServletRequest request,
RemoteAddressResolver remoteAddressResolver)
Creates an HTTP element for an
Event . |
HttpInterface(javax.servlet.http.HttpServletRequest request,
RemoteAddressResolver remoteAddressResolver,
String body)
Creates an HTTP element for an
Event . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAuthType() |
String |
getBody() |
Map<String,String> |
getCookies() |
Map<String,Collection<String>> |
getHeaders() |
String |
getInterfaceName()
Gets the unique name of the interface.
|
String |
getLocalAddr() |
String |
getLocalName() |
int |
getLocalPort() |
String |
getMethod() |
Map<String,Collection<String>> |
getParameters() |
String |
getProtocol() |
String |
getQueryString() |
String |
getRemoteAddr() |
String |
getRemoteUser() |
String |
getRequestUrl() |
String |
getServerName() |
int |
getServerPort() |
int |
hashCode() |
boolean |
isAsyncStarted() |
boolean |
isSecure() |
String |
toString() |
public static final String HTTP_INTERFACE
public HttpInterface(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequestpublic HttpInterface(javax.servlet.http.HttpServletRequest request, RemoteAddressResolver remoteAddressResolver)
Event
.request
- Captured HTTP request to send to Sentry.remoteAddressResolver
- RemoteAddressResolverpublic HttpInterface(javax.servlet.http.HttpServletRequest request, RemoteAddressResolver remoteAddressResolver, String body)
Event
.request
- Captured HTTP request to send to Sentry.remoteAddressResolver
- RemoteAddressResolverbody
- HTTP request body (optional)public String getInterfaceName()
SentryInterface
getInterfaceName
in interface SentryInterface
public String getRequestUrl()
public String getMethod()
public Map<String,Collection<String>> getParameters()
public String getQueryString()
public String getRemoteAddr()
public String getServerName()
public int getServerPort()
public String getLocalAddr()
public String getLocalName()
public int getLocalPort()
public String getProtocol()
public boolean isSecure()
public boolean isAsyncStarted()
public String getAuthType()
public String getRemoteUser()
public String getBody()
public Map<String,Collection<String>> getHeaders()
Copyright © 2012–2018. All rights reserved.