|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.logging.ClfLogRecord
public class ClfLogRecord
Represents a single log record created by ClfLogger
.
Log files may be parsed by calling
ClfLogRecord.parse
.
Field Summary | |
---|---|
int |
contentLength
The content length of the document returned to the client. |
String |
dleseId
If full: DLESE ID of the record returned. |
String |
identity
id. |
int |
numDbRecords
Total number of records in the database |
int |
numSearchResults
Number of search results for search requests; 0 otherwise |
int |
rankNum
If search: rank of first result in the displayed page. |
String |
referrer
The referrer, but long ago was misspelled it as the "referer" HTTP request header. |
String |
remoteHost
Remote host IP number. |
String |
remoteUser
The username as which the user has authenticated via password protection. |
Date |
requestDateUtc
The date and time of request, UTC (GMT) time. |
String |
requestString
The request line as it came from the client. |
String |
requestType
The DLESE request type: search/full/other. |
String |
serverName
The name of the server that received the request. |
int |
serverPort
The port number of the server that received the request. |
String |
userAgent
The User_Agent HTTP request header, in quotes. |
String |
xmlString
An arbitrary string, generally XML. |
Constructor Summary | |
---|---|
ClfLogRecord()
|
Method Summary | |
---|---|
static ClfLogRecord |
parse(String inline,
int linenum)
Creates a ClfLogRecord by parsing the specified input line. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String remoteHost
public String identity
public String remoteUser
public Date requestDateUtc
public String requestString
public int contentLength
public String referrer
public String userAgent
public String serverName
public int serverPort
public String requestType
public int numSearchResults
public int numDbRecords
public int rankNum
public String dleseId
public String xmlString
Constructor Detail |
---|
public ClfLogRecord()
Method Detail |
---|
public String toString()
toString
in class Object
public static ClfLogRecord parse(String inline, int linenum) throws LogException
int linenum = 0; BufferedReader rdr = new BufferedReader( new FileReader( inname)); while (true) { String inline = rdr.readLine(); if (inline == null) break; linenum++; ClfLogRecord rec = ClfLogRecord.parse( inline, linenum); System.out.println("\nrecord " + linenum + ":\n" + rec); } rdr.close();
LogException
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |