Exemplo n.º 1
0
 public static void checkSyslogServerSettings(SyslogServerSettings settings) {
   // Check optional fields
   if (settings.getSyslogServerIp1() != null) {
     checkIpAddress(settings.getSyslogServerIp1());
   }
   if (settings.getSyslogServerIp2() != null) {
     checkIpAddress(settings.getSyslogServerIp2());
   }
 }
Exemplo n.º 2
0
 public Builder fromSyslogServerSettings(SyslogServerSettings in) {
   return syslogServerIp1(in.getSyslogServerIp1()).syslogServerIp2(in.getSyslogServerIp2());
 }