@Override public SOAPMessage getAsSOAPMessage() throws SOAPException { Message msg = this.getMessage(); if (msg == null) return null; if (msg instanceof MessageWritable) ((MessageWritable) msg).setMTOMConfiguration(mtomFeature); return msg.readAsSOAPMessage(this, this.getState().isInbound()); }
private WSEndpointReference getEPR(QName tag) throws XMLStreamException { if (packet.getMessage() == null) { return null; } Header h = packet.getMessage().getHeaders().get(tag, false); if(h==null) return null; return h.readAsEPR(addressingVersion); }
/** * This method is for exposing header list through {@link PropertySet#get(Object)}, * for user applications, and should never be invoked directly from within the JAX-WS RI. */ @Property(JAXWSProperties.INBOUND_HEADER_LIST_PROPERTY) /*package*/ MessageHeaders getHeaderList() { Message msg = getMessage(); if (msg == null) { return null; } return msg.getHeaders(); }
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
private boolean checkOneWay(Packet packet) { if (port != null) { /* we can determine this value from WSDL */ return packet.getMessage().isOneWay(port); } else { /* otherwise use this value as an approximation, since this carries the application's intention --- whether it was invokeOneway vs invoke,etc. */ return !(packet.expectReply != null && packet.expectReply); } }
public void setMessage(SOAPMessage newMsg) { message = newMsg; //keep the com.sun.xml.ws.api.message.Message in the packet consistent with the //SOAPMessage we are storing here. packet.setMessage(Messages.create(newMsg)); }
public boolean shouldUseMtom() { if (getState().isInbound()) { return isMtomContentType(); } else { return shouldUseMtomOutbound(); } }
public ContentType getInternalContentType() { Message msg = getInternalMessage(); if (msg instanceof MessageWritable) { MessageWritable mw = (MessageWritable) msg; //bug 18121499 fix mw.setMTOMConfiguration(mtomFeature); return mw.getContentType(); } return contentType; }
MessageWrapper(Packet p, Message m) { super(m.getSOAPVersion()); packet = p; delegate = m; streamDelegate = (m instanceof StreamMessage) ? (StreamMessage) m : null; setMessageMedadata(p); }
@Override public SOAPMessage getAsSOAPMessage() throws SOAPException { Message msg = this.getMessage(); if (msg == null) return null; if (msg instanceof MessageWritable) ((MessageWritable) msg).setMTOMConfiguration(mtomFeature); return msg.readAsSOAPMessage(this, this.getState().isInbound()); }
private WSEndpointReference getEPR(QName tag) throws XMLStreamException { if (packet.getMessage() == null) { return null; } Header h = packet.getMessage().getHeaders().get(tag, false); if(h==null) return null; return h.readAsEPR(addressingVersion); }
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
private boolean checkOneWay(Packet packet) { if (port != null) { /* we can determine this value from WSDL */ return packet.getMessage().isOneWay(port); } else { /* otherwise use this value as an approximation, since this carries the application's intention --- whether it was invokeOneway vs invoke,etc. */ return !(packet.expectReply != null && packet.expectReply); } }
public boolean shouldUseMtom() { if (getState().isInbound()) { return isMtomContentType(); } else { return shouldUseMtomOutbound(); } }
public ContentType getInternalContentType() { Message msg = getInternalMessage(); if (msg instanceof MessageWritable) { MessageWritable mw = (MessageWritable) msg; //bug 18121499 fix mw.setMTOMConfiguration(mtomFeature); return mw.getContentType(); } return contentType; }
MessageWrapper(Packet p, Message m) { super(m.getSOAPVersion()); packet = p; delegate = m; streamDelegate = (m instanceof StreamMessage) ? (StreamMessage) m : null; setMessageMedadata(p); }
@Override public SOAPMessage getAsSOAPMessage() throws SOAPException { Message msg = this.getMessage(); if (msg == null) return null; if (msg instanceof MessageWritable) ((MessageWritable) msg).setMTOMConfiguration(mtomFeature); return msg.readAsSOAPMessage(this, this.getState().isInbound()); }
private WSEndpointReference getEPR(QName tag) throws XMLStreamException { if (packet.getMessage() == null) { return null; } Header h = packet.getMessage().getHeaders().get(tag, false); if(h==null) return null; return h.readAsEPR(addressingVersion); }
@Override public SOAPMessage readAsSOAPMessage() throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(packet, null); } return delegate.readAsSOAPMessage(); }
@Override public SOAPMessage readAsSOAPMessage(Packet p, boolean inbound) throws SOAPException { if (!(delegate instanceof SAAJMessage)) { delegate = toSAAJ(p, inbound); } return delegate.readAsSOAPMessage(); }