org.gcube.application.framework.accesslogger.model
Class TemplateModel

java.lang.Object
  extended by org.gcube.application.framework.accesslogger.model.TemplateModel

public class TemplateModel
extends java.lang.Object

Template for each entry of the access log

Author:
Panagiota Koltsida, NKUA

Constructor Summary
TemplateModel(java.lang.String user, java.lang.String vre, java.lang.String entryType, java.lang.String message, java.util.Date currentDate)
          Constructor
 
Method Summary
 java.lang.String createEntryLine()
          Creates an entry line for the log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateModel

public TemplateModel(java.lang.String user,
                     java.lang.String vre,
                     java.lang.String entryType,
                     java.lang.String message,
                     java.util.Date currentDate)
Constructor

Parameters:
user - The username of the user
vre - The VRE that is used
entryType - The type of entry
message - The message to be logged
currentDate - The current date
Method Detail

createEntryLine

public java.lang.String createEntryLine()
Creates an entry line for the log

Returns:
The log entry as a String