Examples of parseUri()


Examples of org.apache.camel.component.properties.PropertiesComponent.parseUri()

                        Component component = exchange.getContext().getComponent("properties");
                        PropertiesComponent pc = exchange.getContext().getTypeConverter()
                                .mandatoryConvertTo(PropertiesComponent.class, component);
                        // enclose key with {{ }} to force parsing
                        String[] paths = locations.split(",");
                        return pc.parseUri(pc.getPrefixToken() + key + pc.getSuffixToken(), paths);
                    } else {
                        // the properties component is mandatory if no locations provided
                        Component component = exchange.getContext().hasComponent("properties");
                        if (component == null) {
                            throw new IllegalArgumentException("PropertiesComponent with name properties must be defined"
View Full Code Here

Examples of org.apache.camel.component.properties.PropertiesComponent.parseUri()

                                    + " in CamelContext to support property placeholders in expressions");
                        }
                        PropertiesComponent pc = exchange.getContext().getTypeConverter()
                                .mandatoryConvertTo(PropertiesComponent.class, component);
                        // enclose key with {{ }} to force parsing
                        return pc.parseUri(pc.getPrefixToken() + key + pc.getSuffixToken());
                    }
                } catch (Exception e) {
                    throw ObjectHelper.wrapRuntimeCamelException(e);
                }
            }
View Full Code Here

Examples of org.apache.camel.component.properties.PropertiesComponent.parseUri()

                        + " in CamelContext to support property placeholders in endpoint URIs");
            }
            // force component to be created and registered as a component
            PropertiesComponent pc = getComponent("properties", PropertiesComponent.class);
            // the parser will throw exception if property key was not found
            String answer = pc.parseUri(uri);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Resolved uri: " + uri + " --> " + answer);
            }
            return answer;
        }
View Full Code Here

Examples of org.apache.camel.component.properties.PropertiesComponent.parseUri()

                        Component component = exchange.getContext().getComponent("properties");
                        PropertiesComponent pc = exchange.getContext().getTypeConverter()
                                .mandatoryConvertTo(PropertiesComponent.class, component);
                        // enclose key with {{ }} to force parsing
                        String[] paths = locations.split(",");
                        return pc.parseUri(PropertiesComponent.PREFIX_TOKEN + key + PropertiesComponent.SUFFIX_TOKEN, paths);
                    } else {
                        // the properties component is mandatory if no locations provided
                        Component component = exchange.getContext().hasComponent("properties");
                        if (component == null) {
                            throw new IllegalArgumentException("PropertiesComponent with name properties must be defined"
View Full Code Here

Examples of org.apache.camel.component.properties.PropertiesComponent.parseUri()

                                    + " in CamelContext to support property placeholders in expressions");
                        }
                        PropertiesComponent pc = exchange.getContext().getTypeConverter()
                                .mandatoryConvertTo(PropertiesComponent.class, component);
                        // enclose key with {{ }} to force parsing
                        return pc.parseUri(PropertiesComponent.PREFIX_TOKEN + key + PropertiesComponent.SUFFIX_TOKEN);
                    }
                } catch (Exception e) {
                    throw ObjectHelper.wrapRuntimeCamelException(e);
                }
            }
View Full Code Here

Examples of org.apache.camel.component.properties.PropertiesComponent.parseUri()

                        + " in CamelContext to support property placeholders.");
            }
            // force component to be created and registered as a component
            PropertiesComponent pc = getComponent("properties", PropertiesComponent.class);
            // the parser will throw exception if property key was not found
            String answer = pc.parseUri(text);
            if (log.isDebugEnabled()) {
                log.debug("Resolved text: " + text + " -> " + answer);
            }
            return answer;
        }
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider.parseUri()

            // todo: extend the filename parser to be able to parse
            // only a pathname and take the missing informations from
            // the base. Then we can get rid of the string operation.
            //// String fullPath = base.getRootURI() + resolvedPath.substring(1);

            return provider.parseUri(realBase, fullPath);
        }

        if (scheme != null)
        {
// An unknown scheme - hand it to the default provider - if possible
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider.parseUri()

        {
// An absolute URI - locate the provider
            final FileProvider provider = (FileProvider) providers.get(scheme);
            if (provider != null)
            {
                return provider.parseUri(null, uri);
            }

// Otherwise, assume a local file
        }
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider.parseUri()

      // only a pathname and take the missing informations from
      // the base. Then we can get rid of the string operation.
      // // String fullPath = base.getRootURI() +
      // resolvedPath.substring(1);

      return provider.parseUri(realBase, fullPath);
    }

    if (scheme != null)
    {
      // An unknown scheme - hand it to the default provider - if possible
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider.parseUri()

    {
      // An absolute URI - locate the provider
      final FileProvider provider = (FileProvider) providers.get(scheme);
      if (provider != null)
      {
        return provider.parseUri(null, uri);
      }

      // Otherwise, assume a local file
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.