org.gcube.messaging.accounting.portal.logparser.entry
Class LogEntry

java.lang.Object
  extended by org.gcube.messaging.accounting.portal.logparser.entry.LogEntry
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AdvancedSearchEntry, AISEntry, AnnotationEntry, AquamapsEntry, BrowseCollectionEntry, GenericEntry, GoogleSearchEntry, HLEntry, LoginEntry, QuickSearchEntry, ReportEntry, RetrieveContentEntry, SimpleSearchEntry, TSEntry, WarEntry, WebAppEntry, WorkflowDocumentEntry

public abstract class LogEntry
extends Object
implements Serializable

Author:
Andrea Manzi(CERN)
See Also:
Serialized Form

Nested Class Summary
protected static class LogEntry.TokensType
           
 
Field Summary
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 Summary
LogEntry()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

date

protected Date date

vre

protected String vre

record

protected org.gcube.messaging.common.messages.records.BaseRecord record

entryType

protected AccessLogParser.EntryType entryType

message

protected Message message

user

protected String user

line

protected String line

parameterValueSeparator

protected static final String parameterValueSeparator
See Also:
Constant Field Values

parameterSeparator

protected static final String parameterSeparator
See Also:
Constant Field Values

DATE_FORMAT

protected static final String DATE_FORMAT
See Also:
Constant Field Values

format

protected static SimpleDateFormat format
Constructor Detail

LogEntry

public LogEntry()
Method Detail

parse

public void parse()
           throws ParseException
parse the line of log

Throws:
ParseException - ParseException

getDate

public Date getDate()
get the date

Returns:
the date

setDate

public void setDate(Date date)
set the date

Parameters:
date - the date

getRecord

public org.gcube.messaging.common.messages.records.BaseRecord getRecord()
get the Associated Record

Returns:
the record

setRecordName

public void setRecordName(org.gcube.messaging.common.messages.records.BaseRecord record)
Set the Associtated record

Parameters:
record -

getMessage

public Message getMessage()
get the message part of the log

Returns:
the message part

setMessage

public void setMessage(Message message)
set the message part of the log

Parameters:
message - the message

getUser

public String getUser()
get the user part

Returns:
the user

setUser

public void setUser(String user)
set the user

Parameters:
user - the user

getVre

public String getVre()
get the VRE

Returns:
the VRE

setVre

public void setVre(String vre)
set the VRE

Parameters:
vre - the VRE

toString

public String toString()
string representation of the log

Overrides:
toString in class Object

getEntryType

public AccessLogParser.EntryType getEntryType()

setEntryType

public void setEntryType(AccessLogParser.EntryType entryType)

fillRecord

public abstract org.gcube.messaging.common.messages.records.BaseRecord fillRecord()


Copyright © 2014. All Rights Reserved.