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.4 2010/02/11 05:02:20 cvs Exp $
Author:
Manish Motwani
See Also:
Serialized Form

Field Summary
protected  java.lang.String applicationName
           
protected  java.lang.String processId
           
 
Fields inherited from class org.productivity.java.syslog4j.server.impl.event.SyslogServerEvent
charSet, date, DATE_FORMAT, facility, host, inetAddress, level, message, raw
 
Constructor Summary
StructuredSyslogServerEvent(byte[] message, int length, java.net.InetAddress inetAddress)
           
 
Method Summary
 java.lang.String getApplicationName()
           
 java.lang.String getProcessId()
           
 StructuredSyslogMessage getStructuredMessage()
           
protected  void parseApplicationName()
           
protected  void parseDate()
           
protected  void parseHost()
           
protected  void parseProcessId()
           
 
Methods inherited from class org.productivity.java.syslog4j.server.impl.event.SyslogServerEvent
getCharSet, getDate, getFacility, getHost, getLevel, getMessage, getRaw, initialize, 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
Constructor Detail

StructuredSyslogServerEvent

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

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()

getStructuredMessage

public StructuredSyslogMessage getStructuredMessage()