Tabnine Logo
URISupport.createRemainingURI
Code IndexAdd Tabnine to your IDE (free)

How to use
createRemainingURI
method
in
org.apache.servicemix.common.util.URISupport

Best Java code snippets using org.apache.servicemix.common.util.URISupport.createRemainingURI (Showing top 2 results out of 315)

origin: org.apache.servicemix/servicemix-jms

protected Endpoint getResolvedEPR(ServiceEndpoint ep) throws Exception {
  // We receive an exchange for an EPR that has not been used yet.
  // Register a provider endpoint and restart processing.
  JmsEndpoint jmsEp = new JmsEndpoint(true);
  jmsEp.setServiceUnit(new DefaultServiceUnit(component));
  jmsEp.setService(ep.getServiceName());
  jmsEp.setEndpoint(ep.getEndpointName());
  jmsEp.setRole(MessageExchange.Role.PROVIDER);
  URI uri = new URI(ep.getEndpointName());
  Map map = URISupport.parseQuery(uri.getQuery());
  if (IntrospectionSupport.setProperties(jmsEp, map, "jms.")) {
    uri = URISupport.createRemainingURI(uri, map);
  }
  if (uri.getPath() != null) {
    String path = uri.getSchemeSpecificPart();
    while (path.startsWith("/")) {
      path = path.substring(1);
    }
    if (path.startsWith(AbstractJmsProcessor.STYLE_QUEUE + "/")) {
      jmsEp.setDestinationStyle(AbstractJmsProcessor.STYLE_QUEUE);
      jmsEp.setJmsProviderDestinationName(path.substring(AbstractJmsProcessor.STYLE_QUEUE.length() + 1));
    } else if (path.startsWith(AbstractJmsProcessor.STYLE_TOPIC + "/")) {
      jmsEp.setDestinationStyle(AbstractJmsProcessor.STYLE_TOPIC);
      jmsEp.setJmsProviderDestinationName(path.substring(AbstractJmsProcessor.STYLE_TOPIC.length() + 1));
    }
  }
  return jmsEp;
}
origin: org.apache.servicemix/servicemix-http

protected Endpoint getResolvedEPR(ServiceEndpoint ep) throws Exception {
  // We receive an exchange for an EPR that has not been used yet.
  // Register a provider endpoint and restart processing.
  HttpEndpoint httpEp = new HttpEndpoint(true);
  httpEp.setServiceUnit(new DefaultServiceUnit(component));
  httpEp.setService(ep.getServiceName());
  httpEp.setEndpoint(ep.getEndpointName());
  httpEp.setRole(MessageExchange.Role.PROVIDER);
  URI uri = new URI(ep.getEndpointName());
  Map map = URISupport.parseQuery(uri.getQuery());
  if (IntrospectionSupport.setProperties(httpEp, map, "http.")) {
    uri = URISupport.createRemainingURI(uri, map);
  }
  if (httpEp.getLocationURI() == null) {
    httpEp.setLocationURI(uri.toString());
  }
  return httpEp;
}
org.apache.servicemix.common.utilURISupportcreateRemainingURI

Javadoc

Creates a URI from the original URI and the remaining paramaters.

Popular methods of URISupport

  • parseQuery
  • checkParenthesis
  • createQueryString
  • createURIWithQuery
    Creates a URI with the given query.
  • parseComposite
  • splitComponents
  • stripPrefix

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now