org.gcube.application.framework.accesslogger.model
Class TemplateModel
java.lang.Object
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 |
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 uservre - The VRE that is usedentryType - The type of entrymessage - The message to be loggedcurrentDate - The current date
createEntryLine
public java.lang.String createEntryLine()
- Creates an entry line for the log
- Returns:
- The log entry as a String