org.productivity.java.syslog4j.server.impl.event.structured
Class StructuredSyslogServerEvent

java.lang.Object
  extended by org.productivity.java.syslog4j.server.impl.event.SyslogServerEvent
      extended by org.productivity.java.syslog4j.server.impl.event.structured.StructuredSyslogServerEvent
All Implemented Interfaces:
java.io.Serializable, SyslogServerEventIF, SyslogCharSetIF

public class StructuredSyslogServerEvent
extends SyslogServerEvent

SyslogServerStructuredEvent provides an implementation of the SyslogServerEventIF interface that supports receiving of structured syslog messages, as defined in:

http://tools.ietf.org/html/draft-ietf-syslog-protocol-23#section-6

Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.

Version:
$Id: StructuredSyslogServerEvent.java,v 1.6 2011/01/11 05:11:13 cvs Exp $
Author:
Manish Motwani
See Also:
Serialized Form

Field Summary
protected  java.lang.String applicationName
           
protected  org.joda.time.DateTime dateTime
           
protected  org.joda.time.format.DateTimeFormatter dateTimeFormatter
           
protected  java.lang.String processId
           
 
Fields inherited from class org.productivity.java.syslog4j.server.impl.event.SyslogServerEvent
charSet, date, DATE_FORMAT, facility, host, inetAddress, isHostStrippedFromMessage, level, message, rawBytes, rawLength, rawString
 
Constructor Summary
StructuredSyslogServerEvent(byte[] message, int length, java.net.InetAddress inetAddress)
           
StructuredSyslogServerEvent(java.lang.String message, java.net.InetAddress inetAddress)
           
 
Method Summary
 java.lang.String getApplicationName()
           
 org.joda.time.DateTime getDateTime()
           
 org.joda.time.format.DateTimeFormatter getDateTimeFormatter()
           
 java.lang.String getProcessId()
           
 StructuredSyslogMessage getStructuredMessage()
           
protected  void parseApplicationName()
           
protected  void parseDate()
           
protected  void parseHost()
           
protected  void parseProcessId()
           
 void setDateTimeFormatter(java.lang.Object dateTimeFormatter)
           
 
Methods inherited from class org.productivity.java.syslog4j.server.impl.event.SyslogServerEvent
getCharSet, getDate, getFacility, getHost, getLevel, getMessage, getRaw, getRawLength, initialize, initialize, isHostStrippedFromMessage, parse, parsePriority, setCharSet, setDate, setFacility, setHost, setLevel, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationName

protected java.lang.String applicationName

processId

protected java.lang.String processId

dateTime

protected org.joda.time.DateTime dateTime

dateTimeFormatter

protected org.joda.time.format.DateTimeFormatter dateTimeFormatter
Constructor Detail

StructuredSyslogServerEvent

public StructuredSyslogServerEvent(byte[] message,
                                   int length,
                                   java.net.InetAddress inetAddress)

StructuredSyslogServerEvent

public StructuredSyslogServerEvent(java.lang.String message,
                                   java.net.InetAddress inetAddress)
Method Detail

getDateTimeFormatter

public org.joda.time.format.DateTimeFormatter getDateTimeFormatter()

setDateTimeFormatter

public void setDateTimeFormatter(java.lang.Object dateTimeFormatter)

parseApplicationName

protected void parseApplicationName()

parseProcessId

protected void parseProcessId()

parseDate

protected void parseDate()
Overrides:
parseDate in class SyslogServerEvent

parseHost

protected void parseHost()
Overrides:
parseHost in class SyslogServerEvent

getApplicationName

public java.lang.String getApplicationName()

getProcessId

public java.lang.String getProcessId()

getDateTime

public org.joda.time.DateTime getDateTime()

getStructuredMessage

public StructuredSyslogMessage getStructuredMessage()