BasicAuthentication, BndAuthentication, ConnectionSettings, DefaultURLConnectionHandler, HttpsVerification, MultiURLConnectionHandlerpublic 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 | Description |
|---|---|---|
static java.lang.String |
MATCH |
Configuration property for the matcher.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
handle(java.net.URLConnection connection) |
If the corresponding URL matches, modify the connection in the
parameterized way.
|
boolean |
matches(java.net.URL url) |
Answer if this handler matches the given URL
|
static final java.lang.String MATCH
Glob expressions. If no match is given, all
URLs match.void handle(java.net.URLConnection connection)
throws java.lang.Exception
connection - The connection to modifyjava.lang.Exceptionboolean matches(java.net.URL url)
url - the url to match