aQute.bnd.url
Class BasicAuthentication
java.lang.Object
aQute.bnd.url.DefaultURLConnectionHandler
aQute.bnd.url.BasicAuthentication
- All Implemented Interfaces:
- Plugin, RegistryPlugin, URLConnectionHandler, Report, Reporter
public class BasicAuthentication
- extends DefaultURLConnectionHandler
Provide Http Basic Authentication. This URL Connection Handler plugin will
add basic authentication to the matching URL Connections. The following
properties must be specified.
URLConnectionHandler#MATCH — The URL Glob expressions
- .password — The password for basic authentication
- user — The user id
| 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 |
BasicAuthentication
public BasicAuthentication()
setProperties
public void setProperties(Map<String,String> map)
throws Exception
- Description copied from class:
DefaultURLConnectionHandler
- Set the properties for this plugin. Subclasses should call this method
before they handle their own properties.
- Specified by:
setProperties in interface Plugin- Overrides:
setProperties in class DefaultURLConnectionHandler
- Parameters:
map - attributes and directives for this plugin's clause
- Throws:
Exception
handle
public void handle(URLConnection connection)
- Description copied from class:
DefaultURLConnectionHandler
- Not doing anything is perfect ok
- Specified by:
handle in interface URLConnectionHandler- Overrides:
handle in class DefaultURLConnectionHandler
- Parameters:
connection - The connection to modify
Copyright © 2014 aQute SARL. All rights reserved.