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)
HTTPRequestInfo
log
in interface HTTPRequestInfo
statusCode
- the HTTP status code that was returned to the client.public String getAuthUser()
HTTPRequestInfo
getAuthUser
in interface HTTPRequestInfo
public void setAuthUser(String authUser)
HTTPRequestInfo
setAuthUser
in interface HTTPRequestInfo
authUser
- the authUser to setpublic int getStatusCode()
HTTPRequestInfo
getStatusCode
in interface HTTPRequestInfo
public String getServerAddress()
HTTPRequestInfo
getServerAddress
in interface HTTPRequestInfo
public String getServerHost()
HTTPRequestInfo
getServerHost
in interface HTTPRequestInfo
public int getServerPort()
HTTPRequestInfo
getServerPort
in interface HTTPRequestInfo
public String getClientAddress()
HTTPRequestInfo
getClientAddress
in interface HTTPRequestInfo
public String getClientHost()
HTTPRequestInfo
getClientHost
in interface HTTPRequestInfo
public int getClientPort()
HTTPRequestInfo
getClientPort
in interface HTTPRequestInfo
public String getProtocol()
HTTPRequestInfo
getProtocol
in interface HTTPRequestInfo
public String getMethod()
HTTPRequestInfo
getMethod
in interface HTTPRequestInfo
public URI getUri()
HTTPRequestInfo
getUri
in interface HTTPRequestInfo
public String getUserAgent()
HTTPRequestInfo
getUserAgent
in interface HTTPRequestInfo
public long getConnectionID()
HTTPRequestInfo
getConnectionID
in interface HTTPRequestInfo
public long getTotalProcessingTime()
HTTPRequestInfo
getTotalProcessingTime
in interface HTTPRequestInfo
public String getTransactionId()
HTTPRequestInfo
getTransactionId
in interface HTTPRequestInfo
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.