Go to the documentation of this file.
19package org.sleuthkit.autopsy.events;
22import java.net.URISyntaxException;
23import javax.annotation.concurrent.Immutable;
24import jakarta.jms.Connection;
25import jakarta.jms.JMSException;
26import org.apache.activemq.ActiveMQConnectionFactory;
27import java.io.IOException;
28import java.net.InetAddress;
29import java.util.MissingResourceException;
30import org.openide.util.NbBundle;
113 URI getURI() throws URISyntaxException {
129 if (
host ==
null ||
host.isEmpty()) {
137 ActiveMQConnectionFactory connectionFactory =
new ActiveMQConnectionFactory(
getUserName(),
getPassword(), getURI());
141 }
catch (URISyntaxException ex) {
144 }
catch (JMSException ex) {
146 Throwable cause = ex.getCause();
147 if (
null != cause &&
null != cause.getMessage()) {
149 String msg = cause.getMessage();
172 }
catch (IOException | MissingResourceException any) {
static final String CONNECTION_REFUSED
static final int IS_REACHABLE_TIMEOUT_MS
MessageServiceConnectionInfo(String host, int port, String userName, String password)
static final String MESSAGE_SERVICE_URI
static final String PASSWORD_OR_USERNAME_BAD
static final String CONNECTION_TIMED_OUT
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.