public class ConvertToEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
HIDDEN_MESSAGE
Constant
HIDDEN_MESSAGE="The message logged has been removed due"{trunked} |
| Constructor and Description |
|---|
ConvertToEvent(DatagramPacket packet,
SyslogdConfig config)
Constructs a new event encapsulation instance based upon the
information passed to the method.
|
ConvertToEvent(InetAddress addr,
int port,
String data,
SyslogdConfig config)
Constructs a new event encapsulation instance based upon the
information passed to the method.
|
protected static final String HIDDEN_MESSAGE
HIDDEN_MESSAGE="The message logged has been removed due"{trunked}public ConvertToEvent(DatagramPacket packet, SyslogdConfig config) throws UnsupportedEncodingException, MessageDiscardedException
packet - The datagram received from the remote agent.UnsupportedEncodingException - Thrown if the data buffer cannot be decoded using the
US-ASCII encoding.MessageDiscardedExceptionpublic ConvertToEvent(InetAddress addr, int port, String data, SyslogdConfig config) throws UnsupportedEncodingException, MessageDiscardedException
addr - The remote agent's address.port - The remote agent's portdata - The XML data in US-ASCII encoding.len - The length of the XML data in the buffer.UnsupportedEncodingException - Thrown if the data buffer cannot be decoded using the
US-ASCII encoding.MessageDiscardedExceptionCopyright © 2017. All rights reserved.