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

java.lang.Object
  extended by org.gcube.messaging.accounting.portal.logparser.entry.Message

public class Message
extends Object

Author:
Andrea Manzi(CERN)

Nested Class Summary
protected static class Message.AISTokens
           
protected static class Message.AnnotationTokens
           
protected static class Message.AquamapsTokens
           
protected static class Message.HLTokens
           
protected static class Message.OperatorType
           
protected static class Message.ReportTokens
           
protected static class Message.RetrieveContentTokens
           
protected static class Message.SearchAndBrowseTokens
           
protected static class Message.TSTokens
           
protected static class Message.WarTokens
           
protected static class Message.WebAppTokens
           
protected static class Message.WorkflowDocumentTokens
           
 
Field Summary
protected static String hlAddresssesSeparator
           
protected static String hlAddresssesSeparator2
           
protected static String messageTokensSeparator
           
protected  StringTokenizer tokenizer
           
 
Constructor Summary
Message(String token, AccessLogParser.EntryType type)
          Message constructor
 
Method Summary
 ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> getAddresseeUsers()
           
 String[] getAisentry()
           
 String[] getAnnotationEntry()
           
 String[] getAquamapsEntry()
           
 String getBrowseBy()
          get browse by
 HashMap<String,String> getCollections()
          get teh collections map
 String[] getContent()
          get the content info
 String[] getHlentry()
           
 ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> getListApplication()
           
 ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> getListGHN()
           
 String getMessage()
          get the message
static String getMessagetokensseparator()
           
 String getOperator()
          get the operator
 String[] getReportEntry()
           
 String getTerm()
          get the term
 HashMap<String,String> getTerms()
          get the terms map
 String getTstitle()
           
 AccessLogParser.EntryType getType()
          get the type
 String[] getWarEntry()
           
 String[] getWebAppEntry()
           
 String[] getWorkflowDocumentsEntry()
           
 boolean isDistinct()
          set the isDistinct
 void parse()
          parse the message line of log
 void setAddresseeUsers(ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> addresseeUsers)
           
 void setAisentry(String[] aisentry)
           
 void setAnnotationEntry(String[] annotationEntry)
           
 void setAquamapsEntry(String[] aquamapsEntry)
           
 void setBrowseBy(String browseBy)
          set the browse by
 void setCollections(HashMap<String,String> collections)
          set the collections map
 void setContent(String[] content)
          set the content info
 void setDistinct(boolean isDistinct)
          set the isDistinct
 void setHlentry(String[] hlentry)
           
 void setListApplication(ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> listApplication)
           
 void setListGHN(ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> listGHN)
           
 void setMessage(String message)
          set teh message
 void setOperator(String operator)
          set the operator
 void setReportEntry(String[] reportEntry)
           
 void setTerm(String term)
          set the term
 void setTerms(HashMap<String,String> terms)
          set the terms map
 void setTstitle(String tstitle)
           
 void setType(AccessLogParser.EntryType type)
          set the type
 void setWarEntry(String[] warEntry)
           
 void setWebAppEntry(String[] webAppEntry)
           
 void setWorkflowDocumentsEntry(String[] workflowDocumentsEntry)
           
 String toString()
          get the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageTokensSeparator

protected static final String messageTokensSeparator
See Also:
Constant Field Values

hlAddresssesSeparator

protected static final String hlAddresssesSeparator
See Also:
Constant Field Values

hlAddresssesSeparator2

protected static final String hlAddresssesSeparator2
See Also:
Constant Field Values

tokenizer

protected StringTokenizer tokenizer
Constructor Detail

Message

public Message(String token,
               AccessLogParser.EntryType type)
Message constructor

Parameters:
token - token
type - type
Method Detail

parse

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

Throws:
ParseException - ParseException

getAquamapsEntry

public String[] getAquamapsEntry()

setAquamapsEntry

public void setAquamapsEntry(String[] aquamapsEntry)

getReportEntry

public String[] getReportEntry()

setReportEntry

public void setReportEntry(String[] reportEntry)

getWorkflowDocumentsEntry

public String[] getWorkflowDocumentsEntry()

setWorkflowDocumentsEntry

public void setWorkflowDocumentsEntry(String[] workflowDocumentsEntry)

toString

public String toString()
get the message

Overrides:
toString in class Object

getCollections

public HashMap<String,String> getCollections()
get teh collections map

Returns:
the collections map

setCollections

public void setCollections(HashMap<String,String> collections)
set the collections map

Parameters:
collections - the collections map

getMessage

public String getMessage()
get the message

Returns:
the message

setMessage

public void setMessage(String message)
set teh message

Parameters:
message - the message

getTerm

public String getTerm()
get the term

Returns:
the term

setTerm

public void setTerm(String term)
set the term

Parameters:
term - the term

getTerms

public HashMap<String,String> getTerms()
get the terms map

Returns:
the terms map

setTerms

public void setTerms(HashMap<String,String> terms)
set the terms map

Parameters:
terms - the terms map

getType

public AccessLogParser.EntryType getType()
get the type

Returns:
the type

setType

public void setType(AccessLogParser.EntryType type)
set the type

Parameters:
type -

getBrowseBy

public String getBrowseBy()
get browse by

Returns:
browse by

setBrowseBy

public void setBrowseBy(String browseBy)
set the browse by

Parameters:
browseBy -

isDistinct

public boolean isDistinct()
set the isDistinct

Returns:

setDistinct

public void setDistinct(boolean isDistinct)
set the isDistinct

Parameters:
isDistinct - the parameter

getOperator

public String getOperator()
get the operator

Returns:
the operator

setOperator

public void setOperator(String operator)
set the operator

Parameters:
operator - the operator

getContent

public String[] getContent()
get the content info

Returns:
the content info

setContent

public void setContent(String[] content)
set the content info

Parameters:
content - the conte

getHlentry

public String[] getHlentry()
Returns:
hlentry

setHlentry

public void setHlentry(String[] hlentry)
Parameters:
hlentry -

getAddresseeUsers

public ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> getAddresseeUsers()
Returns:

setAddresseeUsers

public void setAddresseeUsers(ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> addresseeUsers)
Parameters:
addresseeUsers -

getMessagetokensseparator

public static String getMessagetokensseparator()
Returns:

getAisentry

public String[] getAisentry()

setAisentry

public void setAisentry(String[] aisentry)

getTstitle

public String getTstitle()

setTstitle

public void setTstitle(String tstitle)

getAnnotationEntry

public String[] getAnnotationEntry()

setAnnotationEntry

public void setAnnotationEntry(String[] annotationEntry)

getWebAppEntry

public String[] getWebAppEntry()

setWebAppEntry

public void setWebAppEntry(String[] webAppEntry)

getListGHN

public ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> getListGHN()

setListGHN

public void setListGHN(ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> listGHN)

getListApplication

public ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> getListApplication()

setListApplication

public void setListApplication(ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> listApplication)

getWarEntry

public String[] getWarEntry()

setWarEntry

public void setWarEntry(String[] warEntry)


Copyright © 2013. All Rights Reserved.