public class SyslogServerEvent extends Object implements SyslogServerEventIF
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.
| Modifier and Type | Field and Description |
|---|---|
protected String |
charSet |
protected Date |
date |
static String |
DATE_FORMAT |
static String |
DATE_FORMAT_S |
protected int |
facility |
protected String |
host |
protected InetAddress |
inetAddress |
protected boolean |
isHostStrippedFromMessage |
protected int |
level |
protected String |
message |
protected byte[] |
rawBytes |
protected int |
rawLength |
protected String |
rawString |
| Modifier | Constructor and Description |
|---|---|
protected |
SyslogServerEvent() |
|
SyslogServerEvent(byte[] message,
int length,
InetAddress inetAddress) |
|
SyslogServerEvent(String message,
InetAddress inetAddress) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharSet() |
Date |
getDate() |
int |
getFacility() |
String |
getHost() |
int |
getLevel() |
String |
getMessage() |
byte[] |
getRaw()
Note: getRaw() may use System.arraycopy(..) each time it is called; best to call it once and store the result.
|
int |
getRawLength() |
protected void |
initialize(byte[] message,
int length,
InetAddress inetAddress) |
protected void |
initialize(String message,
InetAddress inetAddress) |
boolean |
isHostStrippedFromMessage() |
protected void |
parse() |
protected void |
parseDate() |
protected void |
parseHost() |
protected void |
parsePriority() |
void |
setCharSet(String charSet) |
void |
setDate(Date date) |
void |
setFacility(int facility) |
void |
setHost(String host) |
void |
setLevel(int level) |
void |
setMessage(String message) |
public static final String DATE_FORMAT
public static final String DATE_FORMAT_S
protected String charSet
protected String rawString
protected byte[] rawBytes
protected int rawLength
protected Date date
protected int level
protected int facility
protected String host
protected boolean isHostStrippedFromMessage
protected String message
protected InetAddress inetAddress
protected SyslogServerEvent()
public SyslogServerEvent(String message, InetAddress inetAddress)
public SyslogServerEvent(byte[] message,
int length,
InetAddress inetAddress)
protected void initialize(String message, InetAddress inetAddress)
protected void initialize(byte[] message,
int length,
InetAddress inetAddress)
protected void parseHost()
protected void parseDate()
protected void parsePriority()
protected void parse()
public int getFacility()
getFacility in interface SyslogServerEventIFpublic void setFacility(int facility)
setFacility in interface SyslogServerEventIFpublic byte[] getRaw()
SyslogServerEventIFgetRaw in interface SyslogServerEventIFpublic int getRawLength()
public Date getDate()
getDate in interface SyslogServerEventIFpublic void setDate(Date date)
setDate in interface SyslogServerEventIFpublic int getLevel()
getLevel in interface SyslogServerEventIFpublic void setLevel(int level)
setLevel in interface SyslogServerEventIFpublic String getHost()
getHost in interface SyslogServerEventIFpublic void setHost(String host)
setHost in interface SyslogServerEventIFpublic boolean isHostStrippedFromMessage()
isHostStrippedFromMessage in interface SyslogServerEventIFpublic String getMessage()
getMessage in interface SyslogServerEventIFpublic void setMessage(String message)
setMessage in interface SyslogServerEventIFpublic String getCharSet()
getCharSet in interface SyslogCharSetIFpublic void setCharSet(String charSet)
setCharSet in interface SyslogCharSetIFCopyright © 2017. All rights reserved.