public final class HttpLogContext extends org.forgerock.services.context.AbstractContext implements 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.
|
public void log(int statusCode)
HTTPRequestInfolog in interface HTTPRequestInfostatusCode - the HTTP status code that was returned to the client.public String getAuthUser()
HTTPRequestInfogetAuthUser in interface HTTPRequestInfopublic void setAuthUser(String authUser)
HTTPRequestInfosetAuthUser in interface HTTPRequestInfoauthUser - the authUser to setpublic int getStatusCode()
HTTPRequestInfogetStatusCode in interface HTTPRequestInfopublic String getServerAddress()
HTTPRequestInfogetServerAddress in interface HTTPRequestInfopublic String getServerHost()
HTTPRequestInfogetServerHost in interface HTTPRequestInfopublic int getServerPort()
HTTPRequestInfogetServerPort in interface HTTPRequestInfopublic String getClientAddress()
HTTPRequestInfogetClientAddress in interface HTTPRequestInfopublic String getClientHost()
HTTPRequestInfogetClientHost in interface HTTPRequestInfopublic int getClientPort()
HTTPRequestInfogetClientPort in interface HTTPRequestInfopublic String getProtocol()
HTTPRequestInfogetProtocol in interface HTTPRequestInfopublic String getMethod()
HTTPRequestInfogetMethod in interface HTTPRequestInfopublic URI getUri()
HTTPRequestInfogetUri in interface HTTPRequestInfopublic String getUserAgent()
HTTPRequestInfogetUserAgent in interface HTTPRequestInfopublic long getConnectionID()
HTTPRequestInfogetConnectionID in interface HTTPRequestInfopublic long getTotalProcessingTime()
HTTPRequestInfogetTotalProcessingTime in interface HTTPRequestInfopublic String getTransactionId()
HTTPRequestInfogetTransactionId in interface HTTPRequestInfoCopyright © 2010-2020 Wren Security. All Rights Reserved.