package org.graylog2.syslog4j.impl.message.modifier;
import org.graylog2.syslog4j.SyslogCharSetIF;
import org.graylog2.syslog4j.SyslogConstants;
import org.graylog2.syslog4j.SyslogMessageModifierConfigIF;
/**
* AbstractSyslogMessageModifierConfig provides a base abstract implementation of the
* SyslogMessageModifierConfigIF.
* <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: AbstractSyslogMessageModifierConfig.java,v 1.4 2010/10/28 05:10:57 cvs Exp $
*/
public abstract class AbstractSyslogMessageModifierConfig implements SyslogMessageModifierConfigIF, SyslogCharSetIF {
private static final long serialVersionUID = 5036574188079124884L;
protected String prefix = SYSLOG_MESSAGE_MODIFIER_PREFIX_DEFAULT;
protected String suffix = SYSLOG_MESSAGE_MODIFIER_SUFFIX_DEFAULT;
protected String charSet = SyslogConstants.CHAR_SET_DEFAULT;
public String getPrefix() {
return this.prefix;
}
public String getSuffix() {
return this.suffix;
}
public void setPrefix(String prefix) {
if (prefix == null) {
this.prefix = "";
} else {
this.prefix = prefix;
}
}
public void setSuffix(String suffix) {
if (suffix == null) {
this.suffix = "";
} else {
this.suffix = suffix;
}
}
public String getCharSet() {
return charSet;
}
public void setCharSet(String charSet) {
this.charSet = charSet;
}
}