io.gravitee.connector.http.endpoint.HttpProxy Maven / Gradle / Ivy
/*
* Copyright © 2015 The Gravitee team (http://gravitee.io)
*
* 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 io.gravitee.connector.http.endpoint;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* @author David BRASSELY (david.brassely at graviteesource.com)
* @author GraviteeSource Team
*/
public class HttpProxy implements Serializable {
@JsonProperty("enabled")
private boolean enabled;
@JsonProperty("useSystemProxy")
private boolean useSystemProxy;
@JsonProperty("host")
private String host;
@JsonProperty("port")
private int port;
@JsonProperty("username")
private String username;
@JsonProperty("password")
private String password;
@JsonProperty("type")
private HttpProxyType type = HttpProxyType.HTTP;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public HttpProxyType getType() {
return type;
}
public void setType(HttpProxyType type) {
this.type = type;
}
public boolean isUseSystemProxy() {
return useSystemProxy;
}
public void setUseSystemProxy(boolean useSystemProxy) {
this.useSystemProxy = useSystemProxy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy