public class ConnectionHandlerImpl extends ComponentBase implements ConnectionHandler, EventListener
ConnectionHandler
implementation with support for BASIC authentication and HTTPS client
certificates.ConnectionHandler.Types
Constructor and Description |
---|
ConnectionHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
java.net.URLConnection |
getConnection(java.net.URL url)
Return a connection for the specified url.
|
void |
handle(java.lang.String topic,
java.util.Map<java.lang.String,java.lang.String> payload)
Event callback.
|
protected void |
onInit() |
protected void |
onStop() |
getAgentContext, getAgentUpdateHandler, getConfigurationHandler, getConnectionHandler, getDeploymentHandler, getDiscoveryHandler, getDownloadHandler, getEventsHandler, getExecutorService, getFeedbackHandler, getIdentificationHandler, getLoggingHandler, getWorkDir, init, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, onStart, start, stop
public java.net.URLConnection getConnection(java.net.URL url) throws java.io.IOException
ConnectionHandler
getConnection
in interface ConnectionHandler
url
- The URLjava.io.IOException
- If opening the connection failspublic void handle(java.lang.String topic, java.util.Map<java.lang.String,java.lang.String> payload)
EventListener
handle
in interface EventListener
topic
- The topic stringpayload
- An unmodifiable mapprotected void onInit() throws java.lang.Exception
onInit
in class ComponentBase
java.lang.Exception
protected void onStop() throws java.lang.Exception
onStop
in class ComponentBase
java.lang.Exception