public class HTTPServerResourceAccess extends Object implements ResourceAccess
Modifier and Type | Class and Description |
---|---|
private static class |
HTTPServerResourceAccess.Field |
Modifier and Type | Field and Description |
---|---|
private static Pattern |
__PATTERN |
private boolean |
_cacheHit |
private Date |
_date |
private String |
_httpMethod |
private String |
_httpPath |
private String |
_httpPathHash |
private String |
_httpQueryString |
protected static Logger |
_LOGGER
logger
|
private String |
_originalStatusCode |
private String |
_returnedStatusCode |
private String |
_site |
private String |
_uniqueID |
Modifier | Constructor and Description |
---|---|
protected |
HTTPServerResourceAccess(Map<HTTPServerResourceAccess.Field,Object> params)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static HTTPServerResourceAccess |
createRecord(String entry,
DateFormat df)
Create a new record instance
|
String |
getInsertStatementId()
Retrieves the name of the SQL statement to call.
|
Map<String,Object> |
getInsertStatementParameters()
Retrieves the map of parameters to use when executing the insert statement.
|
boolean |
isOfInterest(Date date)
Indicates if this record should be persisted in the database.
|
String |
toString() |
private final String _httpMethod
private final String _httpPathHash
private final String _httpQueryString
private final String _originalStatusCode
private final String _returnedStatusCode
private final boolean _cacheHit
protected HTTPServerResourceAccess(Map<HTTPServerResourceAccess.Field,Object> params)
params
- the parameters usedpublic static HTTPServerResourceAccess createRecord(String entry, DateFormat df)
entry
- the server access log entrydf
- the date format to use for the recordpublic String getInsertStatementId()
ResourceAccess
getInsertStatementId
in interface ResourceAccess
public Map<String,Object> getInsertStatementParameters()
ResourceAccess
getInsertStatementParameters
in interface ResourceAccess
public boolean isOfInterest(Date date)
date
- The date at which the httpserver log importer has been started.