public class ApacheUserRequest extends UserRequest
UserRequest as recorded by Apache in Apache
web logs (see http://httpd.apache.org/docs/ for the different log
formats and their contents).| Constructor and Description |
|---|
ApacheUserRequest(String client,
Date time,
String requestType,
String resource,
String[] parameters,
String[] parametersValues)
Creates a new Apache
UserRequest with minimal information needed
for a request. |
ApacheUserRequest(String client,
Date time,
String requestType,
String resource,
String[] parameters,
String[] parametersValues,
int statusCode,
int objSize)
Creates a new Apache
UserRequest with the additional information
recorded in Apache web logs. |
ApacheUserRequest(String client,
Date time,
String requestType,
String resource,
String[] parameters,
String[] parametersValues,
int statusCode,
int objSize,
String referrer,
String userAgent)
Creates a new Apache
UserRequest with the additional information
recorded in Apache web logs. |
| Modifier and Type | Method and Description |
|---|---|
int |
getObjSize()
Returns the size of the requested object.
|
String |
getReferrer()
Returns the referrer of the request.
|
int |
getStatusCode()
Returns the status code of the request.
|
String |
getUserAgent()
Returns the UserAgent of the request.
|
void |
setObjSize(int objSize)
Sets the size of the requested object.
|
void |
setReferrer(String referrer)
Sets the referrer of the request.
|
void |
setStatusCode(int statusCode)
Sets the status code of the request.
|
void |
setUserAgent(String userAgent)
Sets the user agent of the request.
|
String |
toString() |
getClient, getParameters, getParametersValues, getRequestType, getResource, getTimepublic ApacheUserRequest(String client, Date time, String requestType, String resource, String[] parameters, String[] parametersValues)
UserRequest with minimal information needed
for a request.client - The client issuing the request (e.g., IP adresss or host
name).time - The time at which the request has been issued.requestType - The type of the request (e.g., HEAD, POST, GET)resource - The requested resource.parameters - The parameters provided when the request is made. Has
to be the same size as parametersValues.parametersValues - The parameters values when the request is made.
Has to be the same size as parameters.public ApacheUserRequest(String client, Date time, String requestType, String resource, String[] parameters, String[] parametersValues, int statusCode, int objSize)
UserRequest with the additional information
recorded in Apache web logs.client - The client issuing the request (e.g., IP adresss or host
name).time - The time at which the request has been issued.requestType - The type of the request (e.g., HEAD, POST, GET)resource - The requested resource.parameters - The parameters provided when the request is made. Has
to be the same size as parametersValues.parametersValues - The parameters values when the request is made.
Has to be the same size as parameters.statusCode - The status code of the request.objSize - The size of the requested object.public ApacheUserRequest(String client, Date time, String requestType, String resource, String[] parameters, String[] parametersValues, int statusCode, int objSize, String referrer, String userAgent)
UserRequest with the additional information
recorded in Apache web logs.client - The client issuing the request (e.g., IP adresss or host
name).time - The time at which the request has been issued.requestType - The type of the request (e.g., HEAD, POST, GET)resource - The requested resource.parameters - The parameters provided when the request is made. Has
to be the same size as parametersValues.parametersValues - The parameters values when the request is made.
Has to be the same size as parameters.statusCode - The status code of the request.objSize - The size of the requested object.referrer - The referrer of the user request.userAgent - The user agent of the user request.public int getStatusCode()
public int getObjSize()
public String getReferrer()
public String getUserAgent()
public void setStatusCode(int statusCode)
statusCode - The new status code.public void setObjSize(int objSize)
objSize - The new size of the requested object.public void setReferrer(String referrer)
referrer - The new referrer of the request.public void setUserAgent(String userAgent)
userAgent - The new user agent of the request.public String toString()
toString in class UserRequestCopyright © 2014–2018 University of Namur. All rights reserved.