/** * Creates a URI from the original URI and the remaining parameters. * * When the query options of a URI are applied to certain objects the used portion of the query options needs * to be removed and replaced with those that remain so that other parts of the code can attempt to apply the * remainder or give an error is unknown values were given. This method is used to update a URI with those * remainder values. * * @param originalURI * The URI whose current parameters are remove and replaced with the given remainder value. * @param params * The URI params that should be used to replace the current ones in the target. * * @return a new URI that matches the original one but has its query options replaced with the given ones. * @throws URISyntaxException */ public static URI createRemainingURI(URI originalURI, Map<String, String> params) throws URISyntaxException { String s = createQueryString(params); if (s.length() == 0) { s = null; } return createURIWithQuery(originalURI, s); }
private static Transport createLocalTransport(URI uri, boolean async) throws Exception { HashMap<String, String> map = new HashMap<String, String>(URISupport.parseParameters(uri)); map.put("async", String.valueOf(async)); map.put("create", "false"); // we don't want a vm connect during shutdown to trigger a broker create uri = URISupport.createURIWithQuery(uri, URISupport.createQueryString(map)); return TransportFactory.connect(uri); }
sb.append(createQueryString(parameters));
@Override public String getOptions() { Map<String, String> options = destination.getActiveMQDestination().getOptions(); String optionsString = ""; try { if (options != null) { optionsString = URISupport.createQueryString(options); } } catch (URISyntaxException ignored) {} return optionsString; }
public FailoverTransport createTransport(Map<String, String> parameters) throws IOException { FailoverTransport transport = new FailoverTransport(); Map<String, Object> nestedExtraQueryOptions = IntrospectionSupport.extractProperties(parameters, "nested."); IntrospectionSupport.setProperties(transport, parameters); try { transport.setNestedExtraQueryOptions(URISupport.createQueryString(nestedExtraQueryOptions)); } catch (URISyntaxException e) { } return transport; }
Map<String, Object> brokerOptions = IntrospectionSupport.extractProperties(options, "broker."); brokerURI = new URI("broker://()/" + host + "?" + URISupport.createQueryString(brokerOptions));
/** * Creates a URI from the original URI and the remaining paramaters * * @throws URISyntaxException */ public static URI createRemainingURI(URI originalURI, Map params) throws URISyntaxException { String s = createQueryString(params); if (s.length() == 0) { s = null; } return createURIWithQuery(originalURI, s); }
/** * Creates a URI from the original URI and the remaining parameters. * * When the query options of a URI are applied to certain objects the used portion of the query options needs * to be removed and replaced with those that remain so that other parts of the code can attempt to apply the * remainder or give an error is unknown values were given. This method is used to update a URI with those * remainder values. * * @param originalURI * The URI whose current parameters are remove and replaced with the given remainder value. * @param params * The URI params that should be used to replace the current ones in the target. * * @return a new URI that matches the original one but has its query options replaced with the given ones. * @throws URISyntaxException */ public static URI createRemainingURI(URI originalURI, Map<String, String> params) throws URISyntaxException { String s = createQueryString(params); if (s.length() == 0) { s = null; } return createURIWithQuery(originalURI, s); }
/** * Creates a URI from the original URI and the remaining parameters. * * When the query options of a URI are applied to certain objects the used portion of the query options needs * to be removed and replaced with those that remain so that other parts of the code can attempt to apply the * remainder or give an error is unknown values were given. This method is used to update a URI with those * remainder values. * * @param originalURI * The URI whose current parameters are remove and replaced with the given remainder value. * @param params * The URI params that should be used to replace the current ones in the target. * * @return a new URI that matches the original one but has its query options replaced with the given ones. * @throws URISyntaxException */ public static URI createRemainingURI(URI originalURI, Map<String, String> params) throws URISyntaxException { String s = createQueryString(params); if (s.length() == 0) { s = null; } return createURIWithQuery(originalURI, s); }
private static Transport createLocalTransport(URI uri, boolean async) throws Exception { HashMap<String, String> map = new HashMap<String, String>(URISupport.parseParameters(uri)); map.put("async", String.valueOf(async)); map.put("create", "false"); // we don't want a vm connect during shutdown to trigger a broker create uri = URISupport.createURIWithQuery(uri, URISupport.createQueryString(map)); return TransportFactory.connect(uri); }
private static Transport createLocalTransport(URI uri, boolean async) throws Exception { HashMap<String, String> map = new HashMap<String, String>(URISupport.parseParameters(uri)); map.put("async", String.valueOf(async)); map.put("create", "false"); // we don't want a vm connect during shutdown to trigger a broker create uri = URISupport.createURIWithQuery(uri, URISupport.createQueryString(map)); return TransportFactory.connect(uri); }
/** * Creates a URI from the original URI and the remaining parameters. * * When the query options of a URI are applied to certain objects the used portion of the query options needs * to be removed and replaced with those that remain so that other parts of the code can attempt to apply the * remainder or give an error is unknown values were given. This method is used to update a URI with those * remainder values. * * @param originalURI * The URI whose current parameters are remove and replaced with the given remainder value. * @param params * The URI params that should be used to replace the current ones in the target. * * @return a new URI that matches the original one but has its query options replaced with the given ones. * @throws URISyntaxException */ public static URI createRemainingURI(URI originalURI, Map<String, String> params) throws URISyntaxException { String s = createQueryString(params); if (s.length() == 0) { s = null; } return createURIWithQuery(originalURI, s); }
private static Transport createLocalTransport(URI uri, boolean async) throws Exception { HashMap<String, String> map = new HashMap<String, String>(URISupport.parseParameters(uri)); map.put("async", String.valueOf(async)); map.put("create", "false"); // we don't want a vm connect during shutdown to trigger a broker create uri = URISupport.createURIWithQuery(uri, URISupport.createQueryString(map)); return TransportFactory.connect(uri); }
sb.append(createQueryString(parameters));
@Override public String getOptions() { Map<String, String> options = destination.getActiveMQDestination().getOptions(); String optionsString = ""; try { if (options != null) { optionsString = URISupport.createQueryString(options); } } catch (URISyntaxException ignored) {} return optionsString; }
@Override public String getOptions() { Map<String, String> options = destination.getActiveMQDestination().getOptions(); String optionsString = ""; try { if (options != null) { optionsString = URISupport.createQueryString(options); } } catch (URISyntaxException ignored) {} return optionsString; }
@Override public String getOptions() { Map<String, String> options = destination.getActiveMQDestination().getOptions(); String optionsString = ""; try { if (options != null) { optionsString = URISupport.createQueryString(options); } } catch (URISyntaxException ignored) {} return optionsString; }
public FailoverTransport createTransport(Map<String, String> parameters) throws IOException { FailoverTransport transport = new FailoverTransport(); Map<String, Object> nestedExtraQueryOptions = IntrospectionSupport.extractProperties(parameters, "nested."); IntrospectionSupport.setProperties(transport, parameters); try { transport.setNestedExtraQueryOptions(URISupport.createQueryString(nestedExtraQueryOptions)); } catch (URISyntaxException e) { } return transport; }
public FailoverTransport createTransport(Map<String, String> parameters) throws IOException { FailoverTransport transport = new FailoverTransport(); Map<String, Object> nestedExtraQueryOptions = IntrospectionSupport.extractProperties(parameters, "nested."); IntrospectionSupport.setProperties(transport, parameters); try { transport.setNestedExtraQueryOptions(URISupport.createQueryString(nestedExtraQueryOptions)); } catch (URISyntaxException e) { } return transport; }
public FailoverTransport createTransport(Map<String, String> parameters) throws IOException { FailoverTransport transport = new FailoverTransport(); Map<String, Object> nestedExtraQueryOptions = IntrospectionSupport.extractProperties(parameters, "nested."); IntrospectionSupport.setProperties(transport, parameters); try { transport.setNestedExtraQueryOptions(URISupport.createQueryString(nestedExtraQueryOptions)); } catch (URISyntaxException e) { } return transport; }