public ConduitInitiator getConduitInitiatorForUri(String uri) { return new TransportFinder<ConduitInitiator>(bus, conduitInitiators, loaded, ConduitInitiator.class).findTransportForURI(uri); } }
public T checkForURI(String uri) { //first attempt the ones already registered for (T t : map.values()) { if (hasPrefix(uri, getPrefixes(t))) { return t; } } return null; }
public T findTransportForNamespace(final String namespace) { if (locator == null) { return null; } T factory = loadActivationNamespaces(namespace); if (factory == null) { factory = loadDefaultNamespace(namespace); } if (factory == null) { factory = loadNoDefaultNamespace(namespace); } if (factory == null) { loadAll(); factory = map.get(namespace); } return factory; }
public T findTransportForURI(String uri) { if (locator == null) { return null; } //If the uri is related path or has no protocol prefix , we will set it to be http if (uri.startsWith("/") || uri.indexOf(":") < 0) { uri = "http://" + uri; } T factory = checkForURI(uri); if (factory == null) { //didn't find, now well need to search factory = loadDefaultURIs(uri); if (factory == null) { loadAll(); factory = checkForURI(uri); } } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<DestinationFactory>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }
public T findTransportForURI(String uri) { if (locator == null) { return null; } //If the uri is related path or has no protocol prefix , we will set it to be http if (uri.startsWith("/") || uri.indexOf(":") < 0) { uri = "http://" + uri; } T factory = checkForURI(uri); if (factory == null) { //didn't find, now well need to search factory = loadDefaultURIs(uri); if (factory == null) { loadAll(); factory = checkForURI(uri); } } return factory; }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public ConduitInitiator getConduitInitiator(String namespace) throws BusException { ConduitInitiator factory = conduitInitiators.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<ConduitInitiator>(bus, conduitInitiators, loaded, ConduitInitiator.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_CONDUIT_INITIATOR", BUNDLE, namespace)); } return factory; }
public T findTransportForNamespace(final String namespace) { if (locator == null) { return null; } T factory = loadActivationNamespaces(namespace); if (factory == null) { factory = loadDefaultNamespace(namespace); } if (factory == null) { factory = loadNoDefaultNamespace(namespace); } if (factory == null) { loadAll(); factory = map.get(namespace); } return factory; }
public T findTransportForURI(String uri) { if (locator == null) { return null; } //If the uri is related path or has no protocol prefix , we will set it to be http if (uri.startsWith("/") || uri.indexOf(":") < 0) { uri = "http://" + uri; } T factory = checkForURI(uri); if (factory == null) { //didn't find, now well need to search factory = loadDefaultURIs(uri); if (factory == null) { loadAll(); factory = checkForURI(uri); } } return factory; }
public ConduitInitiator getConduitInitiatorForUri(String uri) { return new TransportFinder<ConduitInitiator>(bus, conduitInitiators, loaded, ConduitInitiator.class).findTransportForURI(uri); } }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ @Override public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }
public T checkForURI(String uri) { //first attempt the ones already registered for (T t : map.values()) { if (hasPrefix(uri, getPrefixes(t))) { return t; } } return null; }
public T findTransportForNamespace(final String namespace) { if (locator == null) { return null; } T factory = loadActivationNamespaces(namespace); if (factory == null) { factory = loadDefaultNamespace(namespace); } if (factory == null) { factory = loadNoDefaultNamespace(namespace); } if (factory == null) { loadAll(); factory = map.get(namespace); } return factory; }
public T findTransportForURI(String uri) { if (locator == null) { return null; } //If the uri is related path or has no protocol prefix , we will set it to be http if (uri.startsWith("/") || uri.indexOf(":") < 0) { uri = "http://" + uri; } T factory = checkForURI(uri); if (factory == null) { //didn't find, now well need to search factory = loadDefaultURIs(uri); if (factory == null) { loadAll(); factory = checkForURI(uri); } } return factory; }
public ConduitInitiator getConduitInitiatorForUri(String uri) { ConduitInitiator factory = new TransportFinder<ConduitInitiator>(bus, conduitInitiators, loaded, ConduitInitiator.class).findTransportForURI(uri); return factory; } }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ public ConduitInitiator getConduitInitiator(String namespace) throws BusException { ConduitInitiator factory = conduitInitiators.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, conduitInitiators, loaded, ConduitInitiator.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_CONDUIT_INITIATOR", BUNDLE, namespace)); } return factory; }
public T checkForURI(String uri) { //first attempt the ones already registered for (T t : map.values()) { if (hasPrefix(uri, getPrefixes(t))) { return t; } } return null; }
public T findTransportForNamespace(final String namespace) { if (locator == null) { return null; } T factory = loadActivationNamespaces(namespace); if (factory == null) { factory = loadDefaultNamespace(namespace); } if (factory == null) { factory = loadNoDefaultNamespace(namespace); } if (factory == null) { loadAll(); factory = map.get(namespace); } return factory; }
@Override public DestinationFactory getDestinationFactoryForUri(String uri) { return new TransportFinder<DestinationFactory>(bus, destinationFactories, loaded, DestinationFactory.class).findTransportForURI(uri); }
/** * Returns the conduit initiator for the given namespace, constructing it * (and storing in the cache for future reference) if necessary, using its * list of factory classname to namespace mappings. * * @param namespace the namespace. */ @Override public DestinationFactory getDestinationFactory(String namespace) throws BusException { DestinationFactory factory = destinationFactories.get(namespace); if (factory == null && !failed.contains(namespace)) { factory = new TransportFinder<>(bus, destinationFactories, loaded, DestinationFactory.class) .findTransportForNamespace(namespace); } if (factory == null) { failed.add(namespace); throw new BusException(new Message("NO_DEST_FACTORY", BUNDLE, namespace)); } return factory; }