@Override public MessageHeaders getHeaders() { return sm.getHeaders(); } }
@Override public MessageHeaders getHeaders() { return sm.getHeaders(); } }
/** * 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 @NotNull MessageHeaders getHeaders() { return delegate.getHeaders(); }
/** * 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(); }
public SecuredMessage(Message msg, SecurityHeader sh) { HeaderList hl = msg.getHeaders(); headers = new ArrayList(hl); this.msg = msg; this.body = new SOAPBody(msg); attachments = msg.getAttachments(); this.sh = sh; }
public void fillIn(Object[] methodArgs, Object returnValue, Message msg) { Object value = (methodPos == -1) ? returnValue : getter.get(methodArgs[methodPos]); msg.getHeaders().add(Headers.create(bridge,value)); } }
void fillIn(Object[] methodArgs, Message msg) { Object value = getter.get(methodArgs[methodPos]); msg.getHeaders().add(Headers.create(bridge,value)); } }
public void fillIn(Object[] methodArgs, Object returnValue, Message msg) { Object value = (methodPos == -1) ? returnValue : getter.get(methodArgs[methodPos]); msg.getHeaders().add(Headers.create(bridge,value)); } }
void fillIn(Object[] methodArgs, Message msg) { Object value = getter.get(methodArgs[methodPos]); msg.getHeaders().add(Headers.create(bridge,value)); } }
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
protected void validateSOAPAction(Packet packet) { String gotA = AddressingUtils.getAction( packet.getMessage().getHeaders(), addressingVersion, soapVersion); if (gotA == null) throw new WebServiceException(AddressingMessages.VALIDATION_SERVER_NULL_ACTION()); if(packet.soapAction != null && !packet.soapAction.equals("\"\"") && !packet.soapAction.equals("\""+gotA+"\"")) { throw new InvalidAddressingHeaderException(addressingVersion.actionTag, addressingVersion.actionMismatchTag); } }
void fillIn(Object[] methodArgs, Message msg) { Object value = getter.get(methodArgs[methodPos]); msg.getHeaders().add(Headers.create(bridge,value)); } }
private static void addHeader(Message m, Set<QName> notUnderstoodHeaders) throws SOAPException { for (QName qname : notUnderstoodHeaders) { SOAPElement soapEl = SOAP_12.getSOAPFactory().createElement(MU_HEADER_DETAIL); soapEl.addNamespaceDeclaration("abc", qname.getNamespaceURI()); soapEl.setAttribute("qname", "abc:" + qname.getLocalPart()); Header header = new DOMHeader<Element>(soapEl); m.getHeaders().add(header); } } }
public void setJAXWSMessage(Message jaxWsMessage, SOAPVersion soapVersion){ QName secQName = new QName(MessageConstants.WSSE_NS, "Security", MessageConstants.WSSE_PREFIX); secHeader = (SecurityHeader)jaxWsMessage.getHeaders().get(secQName, false); securedMessage = new SecuredMessage(jaxWsMessage,getSecurityHeader(), soapVersion); this.soapVersion = soapVersion; securedMessage.setRootElements(getNamespaceContext()); }
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); }
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); }
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); }
protected void updateMessage() { //If LogicalMessage is not acccessed, its not modified. if(lm != null) { //Check if LogicalMessageImpl has changed, if so construct new one // Packet are handled through MessageContext if(lm.isPayloadModifed()){ Message msg = packet.getMessage(); Message updatedMsg = lm.getMessage(msg.getHeaders(),msg.getAttachments(),binding); packet.setMessage(updatedMsg); } lm = null; } }
@Override public @NotNull NextAction processResponse(Packet response) { // if one-way then, no validation if (response.getMessage() != null) { response = validateInboundHeaders(response); response.addSatellite(new WsaPropertyBag(addressingVersion,soapVersion,response)); String msgId = AddressingUtils. getMessageID(response.getMessage().getHeaders(), addressingVersion, soapVersion); response.put(WsaPropertyBag.WSA_MSGID_FROM_REQUEST, msgId); } return doReturnWith(response); }