Package org.apache.airavata.workflow.model.component

Examples of org.apache.airavata.workflow.model.component.ComponentRegistryException


                connection.setInstanceFollowRedirects(false);
                connection.connect();

                count++;
                if (count > 10) {
                    throw new ComponentRegistryException("Too many redirect");
                }
            }

            InputStream inputStream = connection.getInputStream();
            InputStreamReader reader = new InputStreamReader(inputStream);
            HtmlRegistryParserCallback callback = new HtmlRegistryParserCallback();
            ParserDelegator parser = new ParserDelegator();
            parser.parse(reader, callback, false);
        } catch (IOException e) {
            throw new ComponentRegistryException(e);
        }
    }
View Full Code Here


  public List<ComponentReference> getComponentReferenceList() throws ComponentRegistryException {
    try {
      List<ComponentReference> componentTree = getComponentTree(this.directory);
      return componentTree;
    } catch (RuntimeException e) {
      throw new ComponentRegistryException(e);
    }
  }
View Full Code Here

      String compString = IOUtil.readFileToString(file);
      List<WSComponent> components = WSComponentFactory
          .createComponents(compString);
      return components;
    } catch (IOException e) {
      throw new ComponentRegistryException(e);
    }
  }
View Full Code Here

        List<ComponentReference> tree = new ArrayList<ComponentReference>();
        try {
            loadComponents(tree);
            return tree;
        } catch (ComponentException e) {
            throw new ComponentRegistryException(e);
        }
    }
View Full Code Here

  public List<ComponentReference> getComponentReferenceList() throws ComponentRegistryException {
    try {
      List<ComponentReference> componentTree = getComponentTree(this.directory);
      return componentTree;
    } catch (RuntimeException e) {
      throw new ComponentRegistryException(e);
    }
  }
View Full Code Here

      String compString = IOUtil.readFileToString(file);
      List<WSComponent> components = WSComponentFactory
          .createComponents(compString);
      return components;
    } catch (IOException e) {
      throw new ComponentRegistryException(e);
    }
  }
View Full Code Here

        List<ComponentReference> tree = new ArrayList<ComponentReference>();
        try {
            loadComponents(tree);
            return tree;
        } catch (ComponentException e) {
            throw new ComponentRegistryException(e);
        }
    }
View Full Code Here

                connection.setInstanceFollowRedirects(false);
                connection.connect();

                count++;
                if (count > 10) {
                    throw new ComponentRegistryException("Too many redirect");
                }
            }

            InputStream inputStream = connection.getInputStream();
            InputStreamReader reader = new InputStreamReader(inputStream);
            HtmlRegistryParserCallback callback = new HtmlRegistryParserCallback();
            ParserDelegator parser = new ParserDelegator();
            parser.parse(reader, callback, false);
        } catch (IOException e) {
            throw new ComponentRegistryException(e);
        }
    }
View Full Code Here

        boolean success = operation.executeRequestResponseOperation(inputMessage, outputMessage, faultMessage);
        if (success) {
            logger.info("" + outputMessage);
            return outputMessage;
        } else {
            throw new ComponentRegistryException("Excpetion at server " + faultMessage);
        }
    }
View Full Code Here

                XmlElement item = builder.newFragment("value");
                item.addChild(list[i]);
                paramsElem.addChild(item);
            }
        } else {
            throw new ComponentRegistryException("Simple WS Client can not handle the value of type " + value);
        }

        inputMsgElem.addElement(paramsElem);
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.model.component.ComponentRegistryException

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.