Package jenkins
Class UserAgentURLConnectionDecorator
java.lang.Object
hudson.URLConnectionDecorator
jenkins.UserAgentURLConnectionDecorator
- All Implemented Interfaces:
ExtensionPoint
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Symbol("userAgent")
public class UserAgentURLConnectionDecorator
extends URLConnectionDecorator
Sets a Jenkins specific user-agent HTTP header for
HttpURLConnection
.- Since:
- 2.286
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decorate
(URLConnection con) Called before it gets connected.static String
Methods inherited from class hudson.URLConnectionDecorator
all
-
Field Details
-
DISABLED
public static boolean DISABLED
-
-
Constructor Details
-
UserAgentURLConnectionDecorator
public UserAgentURLConnectionDecorator()
-
-
Method Details
-
decorate
Description copied from class:URLConnectionDecorator
Called before it gets connected. Can be used to tweak parameters.- Specified by:
decorate
in classURLConnectionDecorator
- Throws:
IOException
-
getUserAgent
-