Examples of HeaderProcessor


Examples of org.apache.cxf.headers.HeaderProcessor

            return;
        }
        Element elem = DOMUtils.getFirstElement(header);
        while (elem != null) {
            Bus b = message.getExchange() == null ? null : message.getExchange().get(Bus.class);
            HeaderProcessor p =  null;
            if (b != null && b.getExtension(HeaderManager.class) != null) {
                p = b.getExtension(HeaderManager.class).getHeaderProcessor(elem.getNamespaceURI());
            }
               
            Object obj;
            DataBinding dataBinding = null;
            if (p == null || p.getDataBinding() == null) {
                obj = elem;
            } else {
                obj = p.getDataBinding().createReader(Node.class).read(elem);
            }
            //TODO - add the interceptors
               
            SoapHeader shead = new SoapHeader(new QName(elem.getNamespaceURI(),
                                                        elem.getLocalName()),
View Full Code Here

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