public abstract class LogEntry extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LogEntry.TokensType |
| Modifier and Type | Field and Description |
|---|---|
protected Date |
date |
protected static String |
DATE_FORMAT |
protected AccessLogParser.EntryType |
entryType |
protected static SimpleDateFormat |
format |
protected String |
line |
protected Message |
message |
protected static String |
parameterSeparator |
protected static String |
parameterValueSeparator |
protected org.gcube.messaging.common.messages.records.BaseRecord |
record |
protected String |
user |
protected String |
vre |
| Constructor and Description |
|---|
LogEntry() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.gcube.messaging.common.messages.records.BaseRecord |
fillRecord() |
Date |
getDate()
get the date
|
AccessLogParser.EntryType |
getEntryType() |
Message |
getMessage()
get the message part of the log
|
org.gcube.messaging.common.messages.records.BaseRecord |
getRecord()
get the Associated Record
|
String |
getUser()
get the user part
|
String |
getVre()
get the VRE
|
void |
parse()
parse the line of log
|
void |
setDate(Date date)
set the date
|
void |
setEntryType(AccessLogParser.EntryType entryType) |
void |
setMessage(Message message)
set the message part of the log
|
void |
setRecordName(org.gcube.messaging.common.messages.records.BaseRecord record)
Set the Associtated record
|
void |
setUser(String user)
set the user
|
void |
setVre(String vre)
set the VRE
|
String |
toString()
string representation of the log
|
protected Date date
protected String vre
protected org.gcube.messaging.common.messages.records.BaseRecord record
protected AccessLogParser.EntryType entryType
protected Message message
protected String user
protected String line
protected static final String parameterValueSeparator
protected static final String parameterSeparator
protected static final String DATE_FORMAT
protected static SimpleDateFormat format
public void parse()
throws ParseException
ParseException - ParseExceptionpublic Date getDate()
public void setDate(Date date)
date - the datepublic org.gcube.messaging.common.messages.records.BaseRecord getRecord()
public void setRecordName(org.gcube.messaging.common.messages.records.BaseRecord record)
record - public Message getMessage()
public void setMessage(Message message)
message - the messagepublic String getUser()
public void setUser(String user)
user - the userpublic String getVre()
public void setVre(String vre)
vre - the VREpublic String toString()
public AccessLogParser.EntryType getEntryType()
public void setEntryType(AccessLogParser.EntryType entryType)
public abstract org.gcube.messaging.common.messages.records.BaseRecord fillRecord()
Copyright © 2014. All Rights Reserved.