Package org.milyn.resource

Examples of org.milyn.resource.ContainerResourceLocator


   * @param cdrlLoadList BufferedReader cdrl list - one cdrl def per line.
     * @throws java.io.IOException Error reading list buffer.
   */
  public void load(BufferedReader cdrlLoadList) throws IOException {
    String uri;
    ContainerResourceLocator resLocator = applicationContext.getResourceLocator();

    while((uri = cdrlLoadList.readLine()) != null) {
      uri = uri.trim();
      if(uri.equals("") || uri.charAt(0) == '#') {
        continue;
      }

      try {
        InputStream resource = resLocator.getResource(uri);

        logger.info("Loading Smooks Resources from uri [" + uri + "].");
                registerResources(uri, resource);
        logger.debug("[" + uri + "] Loaded.");
      } catch (IllegalArgumentException e) {
View Full Code Here


    synchronized (configuration) {
            edifactModel = (EdifactModel) mappings.get(configuration);
            if(edifactModel == null) {
        try {
                ContainerResourceLocator resourceLocator = applicationContext.getResourceLocator();

                    if(modelConfigData.startsWith("urn:") || modelConfigData.endsWith(".jar") || modelConfigData.endsWith(".zip")) {
                        throw new IOException("Unsupported mapping model config URI for basic EDI Parser '" + modelConfigData + "'.  Check that you are using the correct EDI parser.  You may need to configure an Interchange Parser, such as the UN/EDIFACT parser.");
                    }
View Full Code Here

TOP

Related Classes of org.milyn.resource.ContainerResourceLocator

Copyright © 2018 www.massapicom. 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.