Package gri.tasks.remote.shared

Examples of gri.tasks.remote.shared.FaultMessage


      elem.addContent(
        Util.createElement("details", fault.getDetails()));
  }
    }
    public FaultMessage readFault(Element elem) {
  FaultMessage fault = new FaultMessage(null, null);
 
  List children = elem.getChildren();
  Element child;
  for (int i=0; i<children.size(); i++) {
      child = (Element)children.get(i);
      String name = child.getName();
     
      if (name.equals("type"))
    fault.setType(child.getText());
      else if (name.equals("message"))
    fault.setMessage(child.getText());
      else if (name.equals("details"))
    fault.setDetails(child.getText());
  }
 
  return fault;
    }
View Full Code Here


     *       when it recognizes them. However, the jobId will be given as null.
     */
    protected void throwExceptions(Document doc) throws UnknownJobException, UnknownWorkflowException, RemoteFaultException {
  if (serviceUtil.isFault(doc)) {
      Element root = doc.getRootElement();
      FaultMessage fault = serializers.getFaultSerializer().readFault(root);
 
      if (fault.getType().equals("UnknownJobException"))
    throw new UnknownJobException(null);
      if (fault.getType().equals("UnknownWorkflowException"))
    throw new UnknownWorkflowException(null);
     
      throw new RemoteFaultException(fault);
  }
    }
View Full Code Here

     *       However, the jobId will be given as null.
     */
    protected void throwExceptions(Document doc) throws UnknownJobException, RemoteFaultException {
  if (serviceUtil.isFault(doc)) {
      Element root = doc.getRootElement();
      FaultMessage fault = serializers.getFaultSerializer().readFault(root);
 
      if (fault.getType().equals("UnknownJobException"))
    throw new UnknownJobException(null);
     
      throw new RemoteFaultException(fault);
  }
    }
View Full Code Here

TOP

Related Classes of gri.tasks.remote.shared.FaultMessage

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.