Interface HTTPRequestInfo
- All Known Implementing Classes:
HttpLogContext
public interface HTTPRequestInfo
Contains the information required for logging the HTTP request.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the username that was used to authenticate.Returns the client's address.Returns the client's host.intReturns the client's port.longReturns the unique identifier that has been assigned to the client connection for this HTTP request.Returns the HTTP method/verb used for this request.Returns the protocol used for this request.Returns the server's host.Returns the server's host.intReturns the server's port.intReturns the HTTP status code returned to the client.longReturns the total processing time for this HTTP request.Returns the transactionId for this request.getUri()Returns the URI issued by the client.Returns the user agent used by the client.voidlog(int statusCode) Logs the current request info in the HTTP access log.voidsetAuthUser(String authUser) Sets the username that was used to authenticate.
-
Method Details
-
getServerAddress
-
getServerHost
-
getServerPort
int getServerPort()Returns the server's port.- Returns:
- the serverPort
-
getClientAddress
-
getClientHost
-
getClientPort
int getClientPort()Returns the client's port.- Returns:
- the clientPort
-
getProtocol
-
getMethod
-
getUri
-
getUserAgent
-
getAuthUser
-
setAuthUser
Sets the username that was used to authenticate.- Parameters:
authUser- the authUser to set
-
getStatusCode
int getStatusCode()Returns the HTTP status code returned to the client.- Returns:
- the statusCode
-
getConnectionID
long getConnectionID()Returns the unique identifier that has been assigned to the client connection for this HTTP request.- Returns:
- the unique identifier that has been assigned to the client connection for this HTTP request
-
getTotalProcessingTime
long getTotalProcessingTime()Returns the total processing time for this HTTP request.- Returns:
- the total processing time for this HTTP request
-
getTransactionId
-
log
void log(int statusCode) Logs the current request info in the HTTP access log.- Parameters:
statusCode- the HTTP status code that was returned to the client.
-