Package com.sun.xml.ws.message.saaj

Examples of com.sun.xml.ws.message.saaj.SAAJMessage


   * Creates Message from SOAPMessage
   * @param saaj SOAPMessage
   * @return created Message
   */
  public Message createMessage(SOAPMessage saaj) {
    return new SAAJMessage(saaj);
  }
View Full Code Here


     *      if false, this method generaets a completely SAX event sequence on its own.
     */
    protected abstract void writePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException;

    public Message toSAAJ(Packet p, Boolean inbound) throws SOAPException {
        SAAJMessage message = SAAJFactory.read(p);
        if (message instanceof MessageWritable)
            ((MessageWritable) message)
                    .setMTOMConfiguration(p.getMtomFeature());  
        if (inbound != null) transportHeaders(p, inbound, message.readAsSOAPMessage());
        return message;
    }
View Full Code Here

        // to find (Class, null), so the ternary operator is needed.
        ServiceFinder<SAAJFactory> factories = (packet.component != null ?
                ServiceFinder.find(SAAJFactory.class, packet.component) :
                ServiceFinder.find(SAAJFactory.class));
        for (SAAJFactory s : factories) {
            SAAJMessage msg = s.readAsSAAJ(packet);
            if (msg != null) return msg;
        }       
        return instance.readAsSAAJ(packet);
    }
View Full Code Here

     * @throws SOAPException if SAAJ processing fails
     */
    public SAAJMessage readAsSAAJ(Packet packet) throws SOAPException {
        SOAPVersion v = packet.getMessage().getSOAPVersion();
        SOAPMessage msg = readAsSOAPMessage(v, packet.getMessage());
        return new SAAJMessage(msg);
    }
View Full Code Here

   * Creates Message from SOAPMessage
   * @param saaj SOAPMessage
   * @return created Message
   */
  public Message createMessage(SOAPMessage saaj) {
    return new SAAJMessage(saaj);
  }
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.message.saaj.SAAJMessage

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.