|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractDescribableImpl<ProxyConfiguration>
hudson.ProxyConfiguration
public final class ProxyConfiguration
HTTP proxy configuration.
Use open(URL)
to open a connection with the proxy setting.
Proxy authentication (including NTLM) is implemented by setting a default
Authenticator
which provides a PasswordAuthentication
(as described in the Java 6 tech note
Http Authentication).
Jenkins.proxy
,
Serialized FormNested Class Summary | |
---|---|
static class |
ProxyConfiguration.DescriptorImpl
|
Field Summary | |
---|---|
String |
name
|
String |
noProxyHost
List of host names that shouldn't use proxy, as typed by users. |
int |
port
|
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
ProxyConfiguration(String name,
int port)
|
|
ProxyConfiguration(String name,
int port,
String userName,
String password)
|
|
ProxyConfiguration(String name,
int port,
String userName,
String password,
String noProxyHost)
|
Method Summary | |
---|---|
Proxy |
createProxy()
Deprecated. Use createProxy(String) |
Proxy |
createProxy(String host)
|
static Proxy |
createProxy(String host,
String name,
int port,
String noProxyHost)
|
String |
getEncryptedPassword()
|
static InputStream |
getInputStream(URL url)
|
List<Pattern> |
getNoProxyHostPatterns()
Returns the list of properly formatted no proxy host names. |
static List<Pattern> |
getNoProxyHostPatterns(String noProxyHost)
Returns the list of properly formatted no proxy host names. |
String |
getPassword()
|
String |
getUserName()
|
static XmlFile |
getXmlFile()
|
static ProxyConfiguration |
load()
|
static URLConnection |
open(URL url)
This method should be used wherever URL.openConnection() to internet URLs is invoked directly. |
Object |
readResolve()
|
void |
save()
Persists the state of this object into XML. |
Methods inherited from class hudson.model.AbstractDescribableImpl |
---|
getDescriptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String name
public final int port
public final String noProxyHost
getNoProxyHostPatterns()
Constructor Detail |
---|
public ProxyConfiguration(String name, int port)
public ProxyConfiguration(String name, int port, String userName, String password)
@DataBoundConstructor public ProxyConfiguration(String name, int port, String userName, String password, String noProxyHost)
Method Detail |
---|
public String getUserName()
public String getPassword()
public String getEncryptedPassword()
public List<Pattern> getNoProxyHostPatterns()
public static List<Pattern> getNoProxyHostPatterns(String noProxyHost)
public Proxy createProxy()
createProxy(String)
public Proxy createProxy(String host)
public static Proxy createProxy(String host, String name, int port, String noProxyHost)
public void save() throws IOException
Saveable
For making a bulk change efficiently, see BulkChange
.
To support listeners monitoring changes to this object, call SaveableListener.fireOnChange
save
in interface Saveable
IOException
- if the persistence failed.public Object readResolve()
public static XmlFile getXmlFile()
public static ProxyConfiguration load() throws IOException
IOException
public static URLConnection open(URL url) throws IOException
URL.openConnection()
to internet URLs is invoked directly.
IOException
public static InputStream getInputStream(URL url) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |