Package org.apache.synapse.processors.builtin

Examples of org.apache.synapse.processors.builtin.HeaderProcessor


    private static final QName TYPE_ATT_Q = new QName("type"),
      VALUE_ATT_Q = new QName("value");

    public Processor createProcessor(SynapseEnvironment se, OMElement el) {
      HeaderProcessor hp = new HeaderProcessor();
      super.setNameOnProcessor(se, el, hp);
      OMAttribute val = el.getAttribute(VALUE_ATT_Q);
      OMAttribute type = el.getAttribute(TYPE_ATT_Q);
      if (val == null || type == null) {
        throw new SynapseException("<header> must have both " + VALUE_ATT_Q
          + " and " + TYPE_ATT_Q + " attributes: " + el.toString());
      }
      hp.setHeaderType(type.getAttributeValue());
      hp.setValue( val.getAttributeValue());
      return hp;
  }
View Full Code Here

TOP

Related Classes of org.apache.synapse.processors.builtin.HeaderProcessor

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.