Package aQute.bnd.connection.settings
Class ConnectionSettings.SettingsURLConnectionHandler
java.lang.Object
aQute.bnd.connection.settings.ConnectionSettings.SettingsURLConnectionHandler
- All Implemented Interfaces:
URLConnectionHandler
- Enclosing class:
- ConnectionSettings
private static final class ConnectionSettings.SettingsURLConnectionHandler
extends Object
implements URLConnectionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final URLConnectionHandler
private final URLConnectionHandler
private final Glob
private final int
Fields inherited from interface aQute.bnd.service.url.URLConnectionHandler
MATCH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(URLConnection connection) If the corresponding URL matches, modify the connection in the parameterized way.private boolean
isHttps
(URLConnection connection) boolean
Answer if this handler matches the given URLint
Limit the number of concurrent connections for this handler.toString()
-
Field Details
-
match
-
handler
-
https
-
maxConcurrentConnections
private final int maxConcurrentConnections
-
-
Constructor Details
-
SettingsURLConnectionHandler
-
-
Method Details
-
matches
Description copied from interface:URLConnectionHandler
Answer if this handler matches the given URL- Specified by:
matches
in interfaceURLConnectionHandler
- Parameters:
url
- the url to match- Returns:
- true if matched, false if not.
-
handle
Description copied from interface:URLConnectionHandler
If the corresponding URL matches, modify the connection in the parameterized way.- Specified by:
handle
in interfaceURLConnectionHandler
- Parameters:
connection
- The connection to modify- Throws:
Exception
-
maxConcurrentConnections
public int maxConcurrentConnections()Description copied from interface:URLConnectionHandler
Limit the number of concurrent connections for this handler. If this returns 0, there is no limit.- Specified by:
maxConcurrentConnections
in interfaceURLConnectionHandler
- Returns:
- the number of max concurrent connections or 0 for no limit
-
isHttps
-
toString
-