1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, 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.wsdl.parser; |
26 package com.sun.xml.internal.ws.wsdl.parser; |
27 |
27 |
28 import com.sun.xml.internal.ws.api.model.wsdl.*; |
28 import com.sun.xml.internal.ws.api.model.wsdl.editable.*; |
29 import com.sun.xml.internal.ws.model.wsdl.WSDLOperationImpl; |
|
30 import com.sun.xml.internal.ws.model.wsdl.WSDLBoundPortTypeImpl; |
|
31 import javax.xml.stream.XMLStreamReader; |
29 import javax.xml.stream.XMLStreamReader; |
32 import javax.xml.namespace.QName; |
30 import javax.xml.namespace.QName; |
33 |
31 |
34 /** |
32 /** |
35 * W3C WS-Addressing Runtime WSDL parser extension that parses |
33 * W3C WS-Addressing Runtime WSDL parser extension that parses |
41 public class W3CAddressingMetadataWSDLParserExtension extends W3CAddressingWSDLParserExtension { |
39 public class W3CAddressingMetadataWSDLParserExtension extends W3CAddressingWSDLParserExtension { |
42 |
40 |
43 String METADATA_WSDL_EXTN_NS = "http://www.w3.org/2007/05/addressing/metadata"; |
41 String METADATA_WSDL_EXTN_NS = "http://www.w3.org/2007/05/addressing/metadata"; |
44 QName METADATA_WSDL_ACTION_TAG = new QName(METADATA_WSDL_EXTN_NS, "Action", "wsam"); |
42 QName METADATA_WSDL_ACTION_TAG = new QName(METADATA_WSDL_EXTN_NS, "Action", "wsam"); |
45 @Override |
43 @Override |
46 public boolean bindingElements(WSDLBoundPortType binding, XMLStreamReader reader) { |
44 public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader) { |
47 return false; |
45 return false; |
48 } |
46 } |
49 |
47 |
50 @Override |
48 @Override |
51 public boolean portElements(WSDLPort port, XMLStreamReader reader) { |
49 public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) { |
52 return false; |
50 return false; |
53 } |
51 } |
54 |
52 |
55 @Override |
53 @Override |
56 public boolean bindingOperationElements(WSDLBoundOperation operation, XMLStreamReader reader) { |
54 public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
57 return false; |
55 return false; |
58 } |
56 } |
59 |
57 |
60 @Override |
58 @Override |
61 protected void patchAnonymousDefault(WSDLBoundPortTypeImpl binding) { |
59 protected void patchAnonymousDefault(EditableWSDLBoundPortType binding) { |
62 } |
60 } |
63 |
61 |
64 @Override |
62 @Override |
65 protected String getNamespaceURI() { |
63 protected String getNamespaceURI() { |
66 return METADATA_WSDL_EXTN_NS; |
64 return METADATA_WSDL_EXTN_NS; |