![]() |
Synthia
Generic and flexible data structure generator
|
Representation of a line of Apache's access log.
This class contains all the fields that Apache displays in its standard log format (IP address, URL, timestamp, return code, file size).
Definition at line 31 of file LogLine.java.
Classes | |
| class | Request |
| Simple representation of an HTTP request. | |
| enum | StatusCode |
| The possible status codes associated to each request. More... | |
Public Member Functions | |
| LogLine (String ip, long timestamp, int timezone, Request req, StatusCode code, int size) | |
| String | toString () |
Static Protected Member Functions | |
| static String | formatDate (long timestamp, long timezone) |
| static int | getCode (StatusCode code) |
Protected Attributes | |
| String | m_ipAddress |
| The IP address of an HTTP request. More... | |
| long | m_timestamp |
| The date the request was made. More... | |
| int | m_timeZone |
| The GMT offset of the timestamp. More... | |
| Request | m_request |
| The HTTP request made. More... | |
| int | m_size |
| The size of the object requested. More... | |
| StatusCode | m_statusCode |
| The status code that the server sends back to the client. More... | |
Static Protected Attributes | |
| static final transient DateFormat | m_dateFormat = new SimpleDateFormat("d-MMM-yyyy HH:mm:ss z") |
| A formatter for dates. More... | |
| examples.apache.LogLine.LogLine | ( | String | ip, |
| long | timestamp, | ||
| int | timezone, | ||
| Request | req, | ||
| StatusCode | code, | ||
| int | size | ||
| ) |
Definition at line 73 of file LogLine.java.
|
staticprotected |
Definition at line 96 of file LogLine.java.
|
staticprotected |
Definition at line 102 of file LogLine.java.
| String examples.apache.LogLine.toString | ( | ) |
Definition at line 85 of file LogLine.java.
|
staticprotected |
A formatter for dates.
Definition at line 41 of file LogLine.java.
|
protected |
The IP address of an HTTP request.
Definition at line 46 of file LogLine.java.
|
protected |
The HTTP request made.
Definition at line 61 of file LogLine.java.
|
protected |
The size of the object requested.
Definition at line 66 of file LogLine.java.
|
protected |
The status code that the server sends back to the client.
Definition at line 71 of file LogLine.java.
|
protected |
The date the request was made.
Definition at line 51 of file LogLine.java.
|
protected |
The GMT offset of the timestamp.
Definition at line 56 of file LogLine.java.