aQute.bnd.url
Class MultiURLConnectionHandler

java.lang.Object
  extended by aQute.bnd.url.MultiURLConnectionHandler
All Implemented Interfaces:
URLConnectionHandler

public class MultiURLConnectionHandler
extends Object
implements 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
 
Fields inherited from interface aQute.bnd.service.url.URLConnectionHandler
MATCH
 
Constructor Summary
MultiURLConnectionHandler(Registry registry)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiURLConnectionHandler

public MultiURLConnectionHandler(Registry registry)
Method Detail

handle

public void handle(URLConnection connection)
            throws Exception
Description copied from interface: URLConnectionHandler
If the corresponding URL matches, modify the connection in the parameterized way.

Specified by:
handle in interface URLConnectionHandler
Parameters:
connection - The connection to modify
Throws:
Exception

matches

public boolean matches(URL url)
Description copied from interface: URLConnectionHandler
Answer if this handler matches the given URL

Specified by:
matches in interface URLConnectionHandler
Parameters:
url - the url to match
Returns:
true if matched, false if not.


Copyright © 2014 aQute SARL. All rights reserved.