public class MultiURLConnectionHandler extends java.lang.Object implements URLConnectionHandler
Modifier and Type | Field and Description |
---|---|
private Registry |
registry |
MATCH
Constructor and Description |
---|
MultiURLConnectionHandler(Registry registry) |
Modifier and Type | Method and 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
|
private Registry registry
public MultiURLConnectionHandler(Registry registry)
public void handle(java.net.URLConnection connection) throws java.lang.Exception
URLConnectionHandler
handle
in interface URLConnectionHandler
connection
- The connection to modifyjava.lang.Exception
public boolean matches(java.net.URL url)
URLConnectionHandler
matches
in interface URLConnectionHandler
url
- the url to match