src/share/jaxws_classes/com/sun/xml/internal/ws/addressing/WsaPropertyBag.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
23 * questions. 23 * questions.
24 */ 24 */
25 25
26 package com.sun.xml.internal.ws.addressing; 26 package com.sun.xml.internal.ws.addressing;
27 27
28 import com.oracle.webservices.internal.api.message.BasePropertySet;
28 import com.sun.istack.internal.NotNull; 29 import com.sun.istack.internal.NotNull;
29 import com.sun.xml.internal.ws.api.PropertySet;
30 import com.sun.xml.internal.ws.api.SOAPVersion; 30 import com.sun.xml.internal.ws.api.SOAPVersion;
31 import com.sun.xml.internal.ws.api.addressing.AddressingVersion; 31 import com.sun.xml.internal.ws.api.addressing.AddressingVersion;
32 import com.sun.xml.internal.ws.api.addressing.WSEndpointReference; 32 import com.sun.xml.internal.ws.api.addressing.WSEndpointReference;
33 import com.sun.xml.internal.ws.api.message.AddressingUtils;
33 import com.sun.xml.internal.ws.api.message.Header; 34 import com.sun.xml.internal.ws.api.message.Header;
34 import com.sun.xml.internal.ws.api.message.Message; 35 import com.sun.xml.internal.ws.api.message.Message;
35 import com.sun.xml.internal.ws.api.message.Packet; 36 import com.sun.xml.internal.ws.api.message.Packet;
36 import com.sun.xml.internal.ws.developer.JAXWSProperties; 37 import com.sun.xml.internal.ws.developer.JAXWSProperties;
37 38
38 import javax.xml.namespace.QName; 39 import javax.xml.namespace.QName;
39 import javax.xml.stream.XMLStreamException; 40 import javax.xml.stream.XMLStreamException;
40 41
42
41 /** 43 /**
42 * Provides access to the Addressing headers. 44 * Provides access to the Addressing headers.
43 * 45 *
44 * @author Kohsuke Kawaguchi 46 * @author Kohsuke Kawaguchi
45 * @author Rama Pulavarthi 47 * @author Rama Pulavarthi
46 * @since 2.1.3 48 * @since 2.1.3
47 */ 49 */
48 public class WsaPropertyBag extends PropertySet { 50 public class WsaPropertyBag extends BasePropertySet {
49 51
50 public static final String WSA_REPLYTO_FROM_REQUEST = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.ReplyToFromRequest"; 52 public static final String WSA_REPLYTO_FROM_REQUEST = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.ReplyToFromRequest";
51 public static final String WSA_FAULTTO_FROM_REQUEST = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.FaultToFromRequest"; 53 public static final String WSA_FAULTTO_FROM_REQUEST = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.FaultToFromRequest";
52 public static final String WSA_MSGID_FROM_REQUEST = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.MessageIdFromRequest"; 54 public static final String WSA_MSGID_FROM_REQUEST = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.MessageIdFromRequest";
53 public static final String WSA_TO = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.To"; 55 public static final String WSA_TO = "com.sun.xml.internal.ws.addressing.WsaPropertyBag.To";
135 @Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID}) 137 @Property({JAXWSProperties.ADDRESSING_MESSAGEID,WsaServerTube.REQUEST_MESSAGE_ID})
136 public String getMessageID() { 138 public String getMessageID() {
137 if (packet.getMessage() == null) { 139 if (packet.getMessage() == null) {
138 return null; 140 return null;
139 } 141 }
140 return packet.getMessage().getHeaders().getMessageID(addressingVersion,soapVersion); 142 return AddressingUtils.getMessageID(packet.getMessage().getHeaders(), addressingVersion,soapVersion);
141 } 143 }
142 144
143 private WSEndpointReference getEPR(QName tag) throws XMLStreamException { 145 private WSEndpointReference getEPR(QName tag) throws XMLStreamException {
144 if (packet.getMessage() == null) { 146 if (packet.getMessage() == null) {
145 return null; 147 return null;

mercurial