org.codehaus.cargo.maven3.configuration.Proxy Maven / Gradle / Ivy
/*
* ========================================================================
*
* Codehaus Cargo, copyright 2004-2011 Vincent Massol, 2012-2022 Ali Tokmen.
*
* 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.codehaus.cargo.maven3.configuration;
/**
* Holds configuration data for the <proxy>
tag used to configure the plugin in
* the pom.xml
file.
*/
public class Proxy
{
/**
* Proxy host.
*/
private String host;
/**
* Proxy port. Default to 80 if not set.
*/
private int port = 80;
/**
* Username for authenticating proxies.
*/
private String user;
/**
* Password for authenticating proxies.
*/
private String password;
/**
* List of hosts that do not go through the proxy server. The value can be a list of hosts,
* each seperated by a |
, and in addition a wildcard character (*)
* can be used for matching. For example: *.foo.com|localhost
*/
private String excludeHosts = "";
/**
* @param host Proxy host.
*/
public void setHost(String host)
{
this.host = host;
}
/**
* @return Proxy host.
*/
public String getHost()
{
return this.host;
}
/**
* @param port Proxy port.
*/
public void setPort(int port)
{
this.port = port;
}
/**
* @return Proxy port. Default to 80 if not set.
*/
public int getPort()
{
return this.port;
}
/**
* @param user Username for authenticating proxies.
*/
public void setUser(String user)
{
this.user = user;
}
/**
* @return Username for authenticating proxies.
*/
public String getUser()
{
return this.user;
}
/**
* @param password Password for authenticating proxies.
*/
public void setPassword(String password)
{
this.password = password;
}
/**
* @return Password for authenticating proxies.
*/
public String getPassword()
{
return this.password;
}
/**
* @param proxyExcludeHosts List of hosts that do not go through the proxy server. The value
* can be a list of hosts, each seperated by a |
, and in addition a wildcard
* character (*)
can be used for matching. For example:
* *.foo.com|localhost
*/
public void setExcludeHosts(String proxyExcludeHosts)
{
this.excludeHosts = proxyExcludeHosts;
}
/**
* @return List of hosts that do not go through the proxy server. The value can be a list of
* hosts, each seperated by a |
, and in addition a wildcard character
* (*)
can be used for matching. For example: *.foo.com|localhost
*/
public String getExcludeHosts()
{
return this.excludeHosts;
}
}