Package aQute.bnd.url
Class MultiURLConnectionHandler
java.lang.Object
aQute.bnd.url.MultiURLConnectionHandler
- All Implemented Interfaces:
URLConnectionHandler
Will iterate over the current plugins to find a matching URLConnectionHandler
and in the end use the default connector if no alternative is found.
-
Field Summary
FieldsFields 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.boolean
Answer if this handler matches the given URLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface aQute.bnd.service.url.URLConnectionHandler
maxConcurrentConnections
-
Field Details
-
registry
-
-
Constructor Details
-
MultiURLConnectionHandler
-
-
Method Details
-
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
-
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.
-