Package aQute.bnd.url
Class ConnectionSettings
java.lang.Object
aQute.bnd.url.DefaultURLConnectionHandler
aQute.bnd.url.ConnectionSettings
- All Implemented Interfaces:
Plugin,RegistryPlugin,URLConnectionHandler,Report,Reporter
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceOptions to set.Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.LocationNested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation -
Field Summary
FieldsFields inherited from class aQute.bnd.url.DefaultURLConnectionHandler
registryFields inherited from interface aQute.bnd.service.url.URLConnectionHandler
MATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(URLConnection connection) Handle the connectionvoidsetProperties(Map<String, String> map) Set the properties.Methods inherited from class aQute.bnd.url.DefaultURLConnectionHandler
addMatcher, error, exception, getErrors, getLocation, getWarnings, isOk, isPedantic, matches, matches, progress, setRegistry, setReporter, trace, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface aQute.bnd.service.url.URLConnectionHandler
maxConcurrentConnections
-
Field Details
-
headers
-
config
ConnectionSettings.Config config
-
-
Constructor Details
-
ConnectionSettings
public ConnectionSettings()
-
-
Method Details
-
handle
Handle the connection- Specified by:
handlein interfaceURLConnectionHandler- Overrides:
handlein classDefaultURLConnectionHandler- Parameters:
connection- The connection to modify- Throws:
Exception
-
setProperties
Set the properties.- Specified by:
setPropertiesin interfacePlugin- Overrides:
setPropertiesin classDefaultURLConnectionHandler- Parameters:
map- attributes and directives for this plugin's clause- Throws:
Exception
-