org.openksavi.sponge.restapi.RestApiSettings Maven / Gradle / Ivy
/*
* Copyright 2016-2018 The Sponge authors.
*
* 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.
*/
package org.openksavi.sponge.restapi;
import java.util.List;
import org.openksavi.sponge.ProcessorQualifiedName;
import org.openksavi.sponge.core.util.SslConfiguration;
/**
* REST API settings.
*/
public class RestApiSettings {
/** The Camel REST component id. */
private String restComponentId = RestApiConstants.DEFAULT_REST_COMPONENT_ID;
/** The host. */
private String host;
/** The port. */
private int port = RestApiConstants.DEFAULT_PORT;
/** The API version. */
private int version = RestApiConstants.API_VERSION;
/** The pretty print option. */
private boolean prettyPrint = RestApiConstants.DEFAULT_PRETTY_PRINT;
/** Public actions. */
private List publicActions;
/** Public event names. */
private List publicEvents;
/** The SSLContextParameters bean name. */
private String sslContextParametersBeanName = RestApiConstants.DEFAULT_SSL_CONTEXT_PARAMETERS_BEAN_NAME;
/** The SSL configuration. */
private SslConfiguration sslConfiguration;
/** If {@code true} then the reload operation will be published. The default value is {@code true}. */
private boolean publishReload = RestApiConstants.DEFAULT_PUBLISH_RELOAD;
public String getRestComponentId() {
return restComponentId;
}
public void setRestComponentId(String restComponentId) {
this.restComponentId = restComponentId;
}
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public boolean isPrettyPrint() {
return prettyPrint;
}
public void setPrettyPrint(boolean prettyPrint) {
this.prettyPrint = prettyPrint;
}
public List getPublicActions() {
return publicActions;
}
public void setPublicActions(List publicActions) {
this.publicActions = publicActions;
}
public List getPublicEvents() {
return publicEvents;
}
public void setPublicEvents(List publicEvents) {
this.publicEvents = publicEvents;
}
public String getSslContextParametersBeanName() {
return sslContextParametersBeanName;
}
public void setSslContextParametersBeanName(String sslContextParametersBeanName) {
this.sslContextParametersBeanName = sslContextParametersBeanName;
}
public SslConfiguration getSslConfiguration() {
return sslConfiguration;
}
public void setSslConfiguration(SslConfiguration sslConfiguration) {
this.sslConfiguration = sslConfiguration;
}
public boolean isPublishReload() {
return publishReload;
}
public void setPublishReload(boolean publishReload) {
this.publishReload = publishReload;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy