Package hudson
Class URLConnectionDecorator
- java.lang.Object
-
- hudson.URLConnectionDecorator
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
UserAgentURLConnectionDecorator
public abstract class URLConnectionDecorator extends Object implements ExtensionPoint
Decorates the connections that Jenkins open to access external resources.- Since:
- 1.426
- Author:
- Kohsuke Kawaguchi
- See Also:
ProxyConfiguration.open(URL)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description URLConnectionDecorator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<URLConnectionDecorator>
all()
Returns all the registeredURLConnectionDecorator
s.abstract void
decorate(URLConnection con)
Called before it gets connected.
-
-
-
Method Detail
-
decorate
public abstract void decorate(URLConnection con) throws IOException
Called before it gets connected. Can be used to tweak parameters.- Throws:
IOException
-
all
public static ExtensionList<URLConnectionDecorator> all()
Returns all the registeredURLConnectionDecorator
s.
-
-