public interface HTTPRequestInfo
Modifier and Type | Method and Description |
---|---|
String |
getAuthUser()
Returns the username that was used to authenticate.
|
String |
getClientAddress()
Returns the client's address.
|
String |
getClientHost()
Returns the client's host.
|
int |
getClientPort()
Returns the client's port.
|
long |
getConnectionID()
Returns the unique identifier that has been assigned to the client
connection for this HTTP request.
|
String |
getMethod()
Returns the HTTP method/verb used for this request.
|
String |
getProtocol()
Returns the protocol used for this request.
|
String |
getServerAddress()
Returns the server's host.
|
String |
getServerHost()
Returns the server's host.
|
int |
getServerPort()
Returns the server's port.
|
int |
getStatusCode()
Returns the HTTP status code returned to the client.
|
long |
getTotalProcessingTime()
Returns the total processing time for this HTTP request.
|
String |
getTransactionId()
Returns the transactionId for this request.
|
URI |
getUri()
Returns the URI issued by the client.
|
String |
getUserAgent()
Returns the user agent used by the client.
|
void |
log(int statusCode)
Logs the current request info in the HTTP access log.
|
void |
setAuthUser(String authUser)
Sets the username that was used to authenticate.
|
String getServerAddress()
String getServerHost()
int getServerPort()
String getClientAddress()
String getClientHost()
int getClientPort()
String getProtocol()
String getUserAgent()
String getAuthUser()
void setAuthUser(String authUser)
authUser
- the authUser to setint getStatusCode()
long getConnectionID()
long getTotalProcessingTime()
String getTransactionId()
void log(int statusCode)
statusCode
- the HTTP status code that was returned to the client.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.