All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nightcode.milter.config.GatewayConfig Maven / Gradle / Ivy

There is a newer version: 0.8
Show newest version
package org.nightcode.milter.config;

public class GatewayConfig {

  private String address = "127.0.0.1";
  private int port;

  private String tcpLogLevel = "INFO";
  private boolean tcpLoggingEnabled = false;

  public String getAddress() {
    return address;
  }

  public int getPort() {
    return port;
  }

  public String getTcpLogLevel() {
    return tcpLogLevel;
  }

  public boolean isTcpLoggingEnabled() {
    return tcpLoggingEnabled;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public void setPort(int port) {
    this.port = port;
  }

  public void setTcpLogLevel(String tcpLogLevel) {
    this.tcpLogLevel = tcpLogLevel;
  }

  public void setTcpLoggingEnabled(boolean tcpLoggingEnabled) {
    this.tcpLoggingEnabled = tcpLoggingEnabled;
  }

  @Override public String toString() {
    return "GatewayConfig{"
        + "address='" + address + '\''
        + ", port=" + port
        + ", tcpLogLevel='" + tcpLogLevel + '\''
        + ", tcpLoggingEnabled=" + tcpLoggingEnabled
        + '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy