aQute.bnd.service.url
Interface URLConnectionHandler

All Known Implementing Classes:
BasicAuthentication, BndAuthentication, ConnectionSettings, DefaultURLConnectionHandler, HttpsVerification, MultiURLConnectionHandler

public interface URLConnectionHandler

This interface is used to sign urls, set options, etc. Anybody that interacts with a URL should allow all the URLConnectionHandler plugins to interact with the URLConnection. There are a number of known implementations:

URLConnection are allows matched to the URL. This MATCH is a comma separated list of Glob expressions that must match the canonical URL string representation.


Field Summary
static String MATCH
          Configuration property for the matcher.
 
Method Summary
 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
 

Field Detail

MATCH

static final String MATCH
Configuration property for the matcher. A comma separated list of Glob expressions. If no match is given, all URLs match.

See Also:
Constant Field Values
Method Detail

handle

void handle(URLConnection connection)
            throws Exception
If the corresponding URL matches, modify the connection in the parameterized way.

Parameters:
connection - The connection to modify
Throws:
Exception

matches

boolean matches(URL url)
Answer if this handler matches the given URL

Parameters:
url - the url to match
Returns:
true if matched, false if not.


Copyright © 2014 aQute SARL. All rights reserved.