package org.graylog2.syslog4j.server;
import java.util.Date;
import org.graylog2.syslog4j.SyslogCharSetIF;
/**
* SyslogServerEventIF provides an extensible interface for Syslog4j
* server events.
* <p/>
* <p>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.</p>
*
* @author <syslog4j@productivity.org>
* @version $Id: SyslogServerEventIF.java,v 1.4 2010/11/28 01:38:08 cvs Exp $
*/
public interface SyslogServerEventIF extends SyslogCharSetIF {
/**
* Note: getRaw() may use System.arraycopy(..) each time it is called; best to call it once and store the result.
*
* @return Returns the raw data received from the client.
*/
public byte[] getRaw();
public int getFacility();
public void setFacility(int facility);
public Date getDate();
public void setDate(Date date);
public int getLevel();
public void setLevel(int level);
public String getHost();
public void setHost(String host);
public boolean isHostStrippedFromMessage();
public String getMessage();
public void setMessage(String message);
}