Package aQute.bnd.connection.settings
Class ConnectionSettings.SettingsURLConnectionHandler
- java.lang.Object
-
- aQute.bnd.connection.settings.ConnectionSettings.SettingsURLConnectionHandler
-
- All Implemented Interfaces:
URLConnectionHandler
- Enclosing class:
- ConnectionSettings
private static final class ConnectionSettings.SettingsURLConnectionHandler extends java.lang.Object implements URLConnectionHandler
-
-
Field Summary
Fields Modifier and Type Field Description private URLConnectionHandler
handler
private URLConnectionHandler
https
private Glob
match
-
Fields inherited from interface aQute.bnd.service.url.URLConnectionHandler
MATCH
-
-
Constructor Summary
Constructors Constructor Description SettingsURLConnectionHandler(ServerDTO serverDTO, Processor processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 URLjava.lang.String
toString()
-
-
-
Field Detail
-
match
private final Glob match
-
handler
private final URLConnectionHandler handler
-
https
private final URLConnectionHandler https
-
-
Method Detail
-
matches
public boolean matches(java.net.URL url)
Description copied from interface:URLConnectionHandler
Answer if this handler matches the given URL- Specified by:
matches
in interfaceURLConnectionHandler
- Parameters:
url
- the url to match- Returns:
- true if matched, false if not.
-
handle
public void handle(java.net.URLConnection connection) throws java.lang.Exception
Description copied from interface:URLConnectionHandler
If the corresponding URL matches, modify the connection in the parameterized way.- Specified by:
handle
in interfaceURLConnectionHandler
- Parameters:
connection
- The connection to modify- Throws:
java.lang.Exception
-
isHttps
private boolean isHttps(java.net.URLConnection connection)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-