/** * Reads Message as SOAPMessage. After this call message is consumed. * @param soapVersion SOAP version * @param message Message * @param packet The packet that owns the Message * @return Created SOAPMessage * @throws SOAPException if SAAJ processing fails */ public static SOAPMessage read(SOAPVersion soapVersion, Message message, Packet packet) throws SOAPException { SAAJFactory saajfac = packet.getSAAJFactory(); if (saajfac != null) { SOAPMessage msg = saajfac.readAsSOAPMessage(soapVersion, message, packet); if (msg != null) return msg; } for (SAAJFactory s : ServiceFinder.find(SAAJFactory.class)) { SOAPMessage msg = s.readAsSOAPMessage(soapVersion, message, packet); if (msg != null) return msg; } return instance.readAsSOAPMessage(soapVersion, message, packet); }
/** * Reads Message as SOAPMessage. After this call message is consumed. * @param soapVersion SOAP version * @param message Message * @param packet The packet that owns the Message * @return Created SOAPMessage * @throws SOAPException if SAAJ processing fails */ public static SOAPMessage read(SOAPVersion soapVersion, Message message, Packet packet) throws SOAPException { SAAJFactory saajfac = packet.getSAAJFactory(); if (saajfac != null) { SOAPMessage msg = saajfac.readAsSOAPMessage(soapVersion, message, packet); if (msg != null) return msg; } for (SAAJFactory s : ServiceFinder.find(SAAJFactory.class)) { SOAPMessage msg = s.readAsSOAPMessage(soapVersion, message, packet); if (msg != null) return msg; } return instance.readAsSOAPMessage(soapVersion, message, packet); }
/** * Reads Message as SOAPMessage. After this call message is consumed. * @param soapVersion SOAP version * @param message Message * @param packet The packet that owns the Message * @return Created SOAPMessage * @throws SOAPException if SAAJ processing fails */ public static SOAPMessage read(SOAPVersion soapVersion, Message message, Packet packet) throws SOAPException { SAAJFactory saajfac = packet.getSAAJFactory(); if (saajfac != null) { SOAPMessage msg = saajfac.readAsSOAPMessage(soapVersion, message, packet); if (msg != null) return msg; } for (SAAJFactory s : ServiceFinder.find(SAAJFactory.class)) { SOAPMessage msg = s.readAsSOAPMessage(soapVersion, message, packet); if (msg != null) return msg; } return instance.readAsSOAPMessage(soapVersion, message, packet); }
/** * Reads the message within the Packet to a SAAJMessage. After this call message is consumed. * @param packet Packet * @return Created SAAJPMessage * @throws SOAPException if SAAJ processing fails */ public static SAAJMessage read(Packet packet) throws SOAPException { SAAJFactory saajfac = packet.getSAAJFactory(); if (saajfac != null) { SAAJMessage msg = saajfac.readAsSAAJ(packet); if (msg != null) return msg; } // Use the Component from the Packet if it exists. Note the logic // in the ServiceFinder is such that find(Class) is not equivalent // 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); }
/** * Reads the message within the Packet to a SAAJMessage. After this call message is consumed. * @param packet Packet * @return Created SAAJPMessage * @throws SOAPException if SAAJ processing fails */ public static SAAJMessage read(Packet packet) throws SOAPException { SAAJFactory saajfac = packet.getSAAJFactory(); if (saajfac != null) { SAAJMessage msg = saajfac.readAsSAAJ(packet); if (msg != null) return msg; } // Use the Component from the Packet if it exists. Note the logic // in the ServiceFinder is such that find(Class) is not equivalent // 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); }
/** * Reads the message within the Packet to a SAAJMessage. After this call message is consumed. * @param packet Packet * @return Created SAAJPMessage * @throws SOAPException if SAAJ processing fails */ public static SAAJMessage read(Packet packet) throws SOAPException { SAAJFactory saajfac = packet.getSAAJFactory(); if (saajfac != null) { SAAJMessage msg = saajfac.readAsSAAJ(packet); if (msg != null) return msg; } // Use the Component from the Packet if it exists. Note the logic // in the ServiceFinder is such that find(Class) is not equivalent // 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); }