Package org.apache.synapse

Examples of org.apache.synapse.SynapseException


     *
     * @param msg The error message
     */
    private void handleException(String msg) {
        log.error(msg);
        throw new SynapseException(msg);
    }
View Full Code Here


    if (mc.getEnvelope() == null) {
      try {
        mc.setEnvelope(OMAbstractFactory.getSOAP12Factory()
            .createSOAPEnvelope());
      } catch (Exception e) {
        throw new SynapseException(e);
      }
    }
    setXMLPayload(mc.getEnvelope(), element);
  }
View Full Code Here

    if (mc.getEnvelope() == null) {
      try {
        mc.setEnvelope(OMAbstractFactory.getSOAP12Factory()
            .createSOAPEnvelope());
      } catch (Exception e) {
        throw new SynapseException(e);
      }
    }
    setBinaryPayload(mc.getEnvelope(), dh);

  }
View Full Code Here

    if (mc.getEnvelope() == null) {
      try {
        mc.setEnvelope(OMAbstractFactory.getSOAP12Factory()
            .createSOAPEnvelope());
      } catch (Exception e) {
        throw new SynapseException(e);
      }
    }
    setTextPayload(mc.getEnvelope(), text);
  }
View Full Code Here

        log.debug("null map element returned");
        return;
      }
      setXMLPayload(envelope, mapElt);
    } else {
      throw new SynapseException("cannot handle any other instance of SimpleMap at this point TODO");
    }
  }
View Full Code Here

    if (mc.getEnvelope() == null) {
      try {
        mc.setEnvelope(OMAbstractFactory.getSOAP12Factory()
            .createSOAPEnvelope());
      } catch (Exception e) {
        throw new SynapseException(e);
      }
    }
    setMapPayload(mc.getEnvelope(), map);
  }
View Full Code Here

  public static void setStAXPayload(MessageContext mc, XMLStreamReader streamReader) {
    if (mc.getEnvelope() == null) {
      try {
        mc.setEnvelope(OMAbstractFactory.getSOAP12Factory().createSOAPEnvelope());
      } catch (Exception e) {
        throw new SynapseException(e);
      }
      setStAXPayload(mc.getEnvelope(), streamReader);
    }
  }
View Full Code Here

     * @param msg The error message
     * @param e   The exception
     */
    private static void handleException(String msg, Exception e) {
        log.error(msg, e);
        throw new SynapseException(msg, e);
    }
View Full Code Here

        return TASK;
   

    private void handleException(String message) {
        log.error(message);
        throw new SynapseException(message);
    }
View Full Code Here

                }
                PayloadHelper.setXMLPayload(mc, message.cloneOMElement());
            } catch (AxisFault axisFault) {
                String msg = "Error in setting the message payload : " + message;
                log.error(msg, axisFault);
                throw new SynapseException(msg, axisFault);
            }
        }
        if (soapAction != null) {
            mc.setSoapAction(soapAction);
        }
View Full Code Here

TOP

Related Classes of org.apache.synapse.SynapseException

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.