public interface URLConnectionHandler
URLConnectionHandler plugins to
interact with the URLConnection. There are a number of known implementations:
BndAuthentication — Authenticates using bnd's built in private
key (see Settings
BasicAuthentication — Http Basic Authentication
HttpsVerification — Can add certificats for verification of Https
or disable verification
ConnectionSettings — Can set arbitrary headers on an Http(s)
connection
MATCH is a comma separated list of Glob
expressions that must match the canonical URL string representation.| Modifier and Type | Field and Description |
|---|---|
static String |
MATCH
Configuration property for the matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(URLConnection connection)
If the corresponding URL matches, modify the connection in the
parameterized way.
|
boolean |
matches(URL url)
Answer if this handler matches the given URL
|
static final String MATCH
Glob expressions. If no match is given, all URLs match.void handle(URLConnection connection) throws Exception
connection - The connection to modifyExceptionboolean matches(URL url)
url - the url to matchCopyright © 2016 aQute SARL. All rights reserved.