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
public class ConnectionSettings extends DefaultURLConnectionHandler
Generic connection setter can set a number of basic properties if applicable and can add generic headers. Seeconfigfor the options. For the propeties any property key that starts with an upper case is considered to be a header.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceConnectionSettings.ConfigOptions to set.-
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
-
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConnectionSettings.Configconfig(package private) java.util.Map<java.lang.String,java.lang.String>headers-
Fields inherited from class aQute.bnd.url.DefaultURLConnectionHandler
registry
-
Fields inherited from interface aQute.bnd.service.url.URLConnectionHandler
MATCH
-
-
Constructor Summary
Constructors Constructor Description ConnectionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(java.net.URLConnection connection)Handle the connectionvoidsetProperties(java.util.Map<java.lang.String,java.lang.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, warning
-
-
-
-
Field Detail
-
headers
final java.util.Map<java.lang.String,java.lang.String> headers
-
config
ConnectionSettings.Config config
-
-
Method Detail
-
handle
public void handle(java.net.URLConnection connection) throws java.lang.ExceptionHandle the connection- Specified by:
handlein interfaceURLConnectionHandler- Overrides:
handlein classDefaultURLConnectionHandler- Parameters:
connection- The connection to modify- Throws:
java.lang.Exception
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map) throws java.lang.ExceptionSet the properties.- Specified by:
setPropertiesin interfacePlugin- Overrides:
setPropertiesin classDefaultURLConnectionHandler- Parameters:
map- attributes and directives for this plugin's clause- Throws:
java.lang.Exception
-
-