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
URLConnectionHandlerhandle in interface URLConnectionHandlerconnection - The connection to modifyjava.lang.Exceptionpublic boolean matches(java.net.URL url)
URLConnectionHandlermatches in interface URLConnectionHandlerurl - the url to match