
com.github.joekerouac.common.tools.net.HttpProxySettings Maven / Gradle / Ivy
The newest version!
// Generated by delombok at Fri Mar 14 11:41:38 CST 2025
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
* file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
* to You 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 com.github.joekerouac.common.tools.net;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
/**
* http代理设置
*
* @author JoeKerouac
* @date 2022-10-14 14:37:00
* @since 1.0.0
*/
public class HttpProxySettings {
/**
* 代理服务器host(注意,请勿添加http://前缀,操作系统会自动添加)
*/
@NotBlank
private String host;
/**
* 代理服务器端口号
*/
@Min(1)
@Max(65536)
private int port;
/**
* 需要跳过代理的地址,多个地址以英文分号分隔,例如:192.*;127.*;10.10.10.10
*/
private String override;
/**
* 代理服务器host(注意,请勿添加http://前缀,操作系统会自动添加)
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getHost() {
return this.host;
}
/**
* 代理服务器端口号
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int getPort() {
return this.port;
}
/**
* 需要跳过代理的地址,多个地址以英文分号分隔,例如:192.*;127.*;10.10.10.10
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getOverride() {
return this.override;
}
/**
* 代理服务器host(注意,请勿添加http://前缀,操作系统会自动添加)
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setHost(final String host) {
this.host = host;
}
/**
* 代理服务器端口号
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPort(final int port) {
this.port = port;
}
/**
* 需要跳过代理的地址,多个地址以英文分号分隔,例如:192.*;127.*;10.10.10.10
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setOverride(final String override) {
this.override = override;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof HttpProxySettings)) return false;
final HttpProxySettings other = (HttpProxySettings) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (this.getPort() != other.getPort()) return false;
final java.lang.Object this$host = this.getHost();
final java.lang.Object other$host = other.getHost();
if (this$host == null ? other$host != null : !this$host.equals(other$host)) return false;
final java.lang.Object this$override = this.getOverride();
final java.lang.Object other$override = other.getOverride();
if (this$override == null ? other$override != null : !this$override.equals(other$override)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof HttpProxySettings;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + this.getPort();
final java.lang.Object $host = this.getHost();
result = result * PRIME + ($host == null ? 43 : $host.hashCode());
final java.lang.Object $override = this.getOverride();
result = result * PRIME + ($override == null ? 43 : $override.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "HttpProxySettings(host=" + this.getHost() + ", port=" + this.getPort() + ", override=" + this.getOverride() + ")";
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public HttpProxySettings(final String host, final int port, final String override) {
this.host = host;
this.port = port;
this.override = override;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public HttpProxySettings() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy