|
@@ -1,5 +1,22 @@
|
|
|
package info.fetter.logstashforwarder.config;
|
|
package info.fetter.logstashforwarder.config;
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright 2015 Didier Fetter
|
|
|
|
|
+ *
|
|
|
|
|
+ * Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
+ * you may not use this file except in compliance with the License.
|
|
|
|
|
+ * You may obtain a copy of the License at
|
|
|
|
|
+ *
|
|
|
|
|
+ * http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
+ *
|
|
|
|
|
+ * Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
+ * distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
+ * See the License for the specific language governing permissions and
|
|
|
|
|
+ * limitations under the License.
|
|
|
|
|
+ *
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.apache.commons.lang.builder.ToStringBuilder;
|
|
import org.apache.commons.lang.builder.ToStringBuilder;
|
|
@@ -15,70 +32,47 @@ public class NetworkSection {
|
|
|
@JsonProperty("ssl key")
|
|
@JsonProperty("ssl key")
|
|
|
private String sslKey;
|
|
private String sslKey;
|
|
|
private int timeout;
|
|
private int timeout;
|
|
|
- /**
|
|
|
|
|
- * @return the servers
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public List<String> getServers() {
|
|
public List<String> getServers() {
|
|
|
return servers;
|
|
return servers;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @param servers the servers to set
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public void setServers(List<String> servers) {
|
|
public void setServers(List<String> servers) {
|
|
|
this.servers = servers;
|
|
this.servers = servers;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @return the sslCertificate
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public String getSslCertificate() {
|
|
public String getSslCertificate() {
|
|
|
return sslCertificate;
|
|
return sslCertificate;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @param sslCertificate the sslCertificate to set
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public void setSslCertificate(String sslCertificate) {
|
|
public void setSslCertificate(String sslCertificate) {
|
|
|
this.sslCertificate = sslCertificate;
|
|
this.sslCertificate = sslCertificate;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @return the sslCA
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public String getSslCA() {
|
|
public String getSslCA() {
|
|
|
return sslCA;
|
|
return sslCA;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @param sslCA the sslCA to set
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public void setSslCA(String sslCA) {
|
|
public void setSslCA(String sslCA) {
|
|
|
this.sslCA = sslCA;
|
|
this.sslCA = sslCA;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @return the timeout
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public int getTimeout() {
|
|
public int getTimeout() {
|
|
|
return timeout;
|
|
return timeout;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @param timeout the timeout to set
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public void setTimeout(int timeout) {
|
|
public void setTimeout(int timeout) {
|
|
|
this.timeout = timeout;
|
|
this.timeout = timeout;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * @return the sslKey
|
|
|
|
|
- */
|
|
|
|
|
public String getSslKey() {
|
|
public String getSslKey() {
|
|
|
return sslKey;
|
|
return sslKey;
|
|
|
}
|
|
}
|
|
|
- /**
|
|
|
|
|
- * @param sslKey the sslKey to set
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
public void setSslKey(String sslKey) {
|
|
public void setSslKey(String sslKey) {
|
|
|
this.sslKey = sslKey;
|
|
this.sslKey = sslKey;
|
|
|
}
|
|
}
|
|
|
- /* (non-Javadoc)
|
|
|
|
|
- * @see java.lang.Object#toString()
|
|
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public String toString() {
|
|
public String toString() {
|
|
|
return new ToStringBuilder(this).
|
|
return new ToStringBuilder(this).
|