com.sun.xml.internal.ws.message.saaj.SAAJMessage Java Examples
The following examples show how to use
com.sun.xml.internal.ws.message.saaj.SAAJMessage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractMessageImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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; }
Example #2
Source File: AbstractMessageImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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; }
Example #3
Source File: MessageWrapper.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #4
Source File: SAAJFactory.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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 { // 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); }
Example #5
Source File: MessageWrapper.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #6
Source File: MessageWrapper.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #7
Source File: AbstractMessageImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
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; }
Example #8
Source File: MessageWrapper.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #9
Source File: SAAJFactory.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * 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 { // 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); }
Example #10
Source File: MessageWrapper.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #11
Source File: MessageWrapper.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #12
Source File: AbstractMessageImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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; }
Example #13
Source File: SAAJFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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 { // 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); }
Example #14
Source File: MessageWrapper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #15
Source File: MessageWrapper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #16
Source File: AbstractMessageImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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; }
Example #17
Source File: SAAJFactory.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * 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 { // 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); }
Example #18
Source File: MessageWrapper.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #19
Source File: MessageWrapper.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #20
Source File: SAAJFactory.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * 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 { // 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); }
Example #21
Source File: AbstractMessageImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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; }
Example #22
Source File: AbstractMessageImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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; }
Example #23
Source File: MessageWrapper.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #24
Source File: MessageWrapper.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #25
Source File: SAAJFactory.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * 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 { // 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); }
Example #26
Source File: MessageWrapper.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #27
Source File: MessageWrapper.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }
Example #28
Source File: AbstractMessageImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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; }
Example #29
Source File: MessageWrapper.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
Example #30
Source File: MessageWrapper.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }