aQute.bnd.url
Class ConnectionSettings
java.lang.Object
aQute.bnd.url.DefaultURLConnectionHandler
aQute.bnd.url.ConnectionSettings
- All Implemented Interfaces:
- Plugin, RegistryPlugin, URLConnectionHandler, Report, Reporter
public class ConnectionSettings
- extends DefaultURLConnectionHandler
Generic connection setter can set a number of basic properties if applicable
and can add generic headers. See config for the options. For the
propeties any property key that starts with an upper case is considered to be
a header.
| Methods inherited from class aQute.bnd.url.DefaultURLConnectionHandler |
error, exception, getErrors, getLocation, getWarnings, isOk, isPedantic, matches, matches, progress, setRegistry, setReporter, trace, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionSettings
public ConnectionSettings()
handle
public void handle(URLConnection connection)
throws Exception
- Handle the connection
- Specified by:
handle in interface URLConnectionHandler- Overrides:
handle in class DefaultURLConnectionHandler
- Parameters:
connection - The connection to modify
- Throws:
Exception
setProperties
public void setProperties(Map<String,String> map)
throws Exception
- Set the properties.
- Specified by:
setProperties in interface Plugin- Overrides:
setProperties in class DefaultURLConnectionHandler
- Parameters:
map - attributes and directives for this plugin's clause
- Throws:
Exception
Copyright © 2014 aQute SARL. All rights reserved.