private static final class ConnectionSettings.SettingsURLConnectionHandler extends java.lang.Object implements URLConnectionHandler
Modifier and Type | Field and Description |
---|---|
private URLConnectionHandler |
handler |
private URLConnectionHandler |
https |
private Glob |
match |
MATCH
Constructor and Description |
---|
SettingsURLConnectionHandler(ServerDTO serverDTO,
Processor processor) |
Modifier and Type | Method and Description |
---|---|
void |
handle(java.net.URLConnection connection)
If the corresponding URL matches, modify the connection in the
parameterized way.
|
private boolean |
isHttps(java.net.URLConnection connection) |
boolean |
matches(java.net.URL url)
Answer if this handler matches the given URL
|
java.lang.String |
toString() |
private final Glob match
private final URLConnectionHandler handler
private final URLConnectionHandler https
public boolean matches(java.net.URL url)
URLConnectionHandler
matches
in interface URLConnectionHandler
url
- the url to matchpublic void handle(java.net.URLConnection connection) throws java.lang.Exception
URLConnectionHandler
handle
in interface URLConnectionHandler
connection
- The connection to modifyjava.lang.Exception
private boolean isHttps(java.net.URLConnection connection)
public java.lang.String toString()
toString
in class java.lang.Object