iCMS.applet
Class TrapLine

java.lang.Object
  extended by iCMS.applet.TrapLine
Direct Known Subclasses:
AdvancedTrapLine

public class TrapLine
extends Object

The TrapLine is a class that holds all logic that's required storing a trap which it will try to break down in HITT fields

Version:
2.0.1
Author:
Chris Lukassen
 

Field Summary
protected  String application
           
protected  String data
           
protected  String date
           
protected  boolean decompiled
           
protected  String hostName
           
protected  String key
           
protected  String level
           
protected  String message
           
protected  boolean multipleTokens
           
protected  String time
           
protected  String timeZone
           
protected  String token
           
protected  String trap
          variables
 
Constructor Summary
TrapLine(String trap)
          Constructor
 
Method Summary
 boolean decompiled()
          indicates if the trap has/can be decompiled to a HITT compliant format
 String getApplication()
          returns the application that fired the trap
 String getData()
          returns the raw data message that accompanied the trap
 String getDate()
          returns the date on which this trap occured
 String getHostName()
          returns the hostname that generated this trap
 String getKey()
          returns the key used to decompile this trap
 String getLevel()
          returns the level indication of this trap I = info E = Error W = Warning
 String getMessage()
          returns the message that generated the trap
 String getTime()
          returns the time on which this trap occured
 String getTimeZone()
          returns the timezone related to the date/time of this trap
 String getToken()
          returns the token associated with this trap if one was installed by setToken
 String getTrap()
          returns the trap used for this trapline
 boolean multipleTokens()
          indicates if multiple tokens fit the trap
 boolean setToken(String someToken)
          tries to set a token to a decompiled string, returns a true if the token matches.
 String toString()
          returns the trap used for this trapline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

trap

protected String trap
variables


hostName

protected String hostName

time

protected String time

date

protected String date

timeZone

protected String timeZone

key

protected String key

data

protected String data

level

protected String level

application

protected String application

message

protected String message

token

protected String token

decompiled

protected boolean decompiled

multipleTokens

protected boolean multipleTokens
Constructor Detail

TrapLine

public TrapLine(String trap)
Constructor

Method Detail

decompiled

public boolean decompiled()
indicates if the trap has/can be decompiled to a HITT compliant format


multipleTokens

public boolean multipleTokens()
indicates if multiple tokens fit the trap


toString

public String toString()
returns the trap used for this trapline

Overrides:
toString in class Object

getTrap

public String getTrap()
returns the trap used for this trapline


getHostName

public String getHostName()
returns the hostname that generated this trap


getTime

public String getTime()
returns the time on which this trap occured


getDate

public String getDate()
returns the date on which this trap occured


getTimeZone

public String getTimeZone()
returns the timezone related to the date/time of this trap


getKey

public String getKey()
returns the key used to decompile this trap


getData

public String getData()
returns the raw data message that accompanied the trap


getLevel

public String getLevel()
returns the level indication of this trap


getApplication

public String getApplication()
returns the application that fired the trap


getMessage

public String getMessage()
returns the message that generated the trap


getToken

public String getToken()
returns the token associated with this trap if one was installed by setToken


setToken

public boolean setToken(String someToken)
tries to set a token to a decompiled string, returns a true if the token matches.
Tokens tested against the following expression /x/.../x/hostName/application this means that more than one token could match !