src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLBoundOperation.java

changeset 408
b0610cd08440
parent 368
0989ad8c0860
child 637
9c07ef4934dd
equal deleted inserted replaced
405:cc682329886b 408:b0610cd08440
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
25 25
26 package com.sun.xml.internal.ws.api.model.wsdl; 26 package com.sun.xml.internal.ws.api.model.wsdl;
27 27
28 import com.sun.istack.internal.NotNull; 28 import com.sun.istack.internal.NotNull;
29 import com.sun.istack.internal.Nullable; 29 import com.sun.istack.internal.Nullable;
30 import com.sun.xml.internal.ws.api.model.ParameterBinding;
30 31
31 import javax.jws.WebParam.Mode; 32 import javax.jws.WebParam.Mode;
32 import javax.xml.namespace.QName; 33 import javax.xml.namespace.QName;
34
33 import java.util.Map; 35 import java.util.Map;
34 36
35 /** 37 /**
36 * Abstracts wsdl:binding/wsdl:operation. It can be used to determine the parts and their binding. 38 * Abstracts wsdl:binding/wsdl:operation. It can be used to determine the parts and their binding.
37 * 39 *
77 * @return null if no part is found 79 * @return null if no part is found
78 */ 80 */
79 @Nullable WSDLPart getPart(@NotNull String partName, @NotNull Mode mode); 81 @Nullable WSDLPart getPart(@NotNull String partName, @NotNull Mode mode);
80 82
81 /** 83 /**
84 * Gets {@link ParameterBinding} for a given wsdl part in wsdl:input
85 *
86 * @param part Name of wsdl:part, must be non-null
87 * @return null if the part is not found.
88 */
89 public ParameterBinding getInputBinding(String part);
90
91 /**
92 * Gets {@link ParameterBinding} for a given wsdl part in wsdl:output
93 *
94 * @param part Name of wsdl:part, must be non-null
95 * @return null if the part is not found.
96 */
97 public ParameterBinding getOutputBinding(String part);
98
99 /**
100 * Gets {@link ParameterBinding} for a given wsdl part in wsdl:fault
101 *
102 * @param part Name of wsdl:part, must be non-null
103 * @return null if the part is not found.
104 */
105 public ParameterBinding getFaultBinding(String part);
106
107 /**
108 * Gets the MIME type for a given wsdl part in wsdl:input
109 *
110 * @param part Name of wsdl:part, must be non-null
111 * @return null if the part is not found.
112 */
113 public String getMimeTypeForInputPart(String part);
114
115 /**
116 * Gets the MIME type for a given wsdl part in wsdl:output
117 *
118 * @param part Name of wsdl:part, must be non-null
119 * @return null if the part is not found.
120 */
121 public String getMimeTypeForOutputPart(String part);
122
123 /**
124 * Gets the MIME type for a given wsdl part in wsdl:fault
125 *
126 * @param part Name of wsdl:part, must be non-null
127 * @return null if the part is not found.
128 */
129 public String getMimeTypeForFaultPart(String part);
130
131 /**
82 * Gets all inbound {@link WSDLPart} by its {@link WSDLPart#getName() name}. 132 * Gets all inbound {@link WSDLPart} by its {@link WSDLPart#getName() name}.
83 */ 133 */
84 @NotNull Map<String,WSDLPart> getInParts(); 134 @NotNull Map<String,? extends WSDLPart> getInParts();
85 135
86 /** 136 /**
87 * Gets all outbound {@link WSDLPart} by its {@link WSDLPart#getName() name}. 137 * Gets all outbound {@link WSDLPart} by its {@link WSDLPart#getName() name}.
88 */ 138 */
89 @NotNull Map<String,WSDLPart> getOutParts(); 139 @NotNull Map<String,? extends WSDLPart> getOutParts();
90 140
91 /** 141 /**
92 * Gets all the {@link WSDLFault} bound to this operation. 142 * Gets all the {@link WSDLFault} bound to this operation.
93 */ 143 */
94 @NotNull Iterable<? extends WSDLBoundFault> getFaults(); 144 @NotNull Iterable<? extends WSDLBoundFault> getFaults();
145
146 /**
147 * Map of wsdl:input part name and the binding as {@link ParameterBinding}
148 *
149 * @return empty Map if there is no parts
150 */
151 public Map<String, ParameterBinding> getInputParts();
152
153 /**
154 * Map of wsdl:output part name and the binding as {@link ParameterBinding}
155 *
156 * @return empty Map if there is no parts
157 */
158 public Map<String, ParameterBinding> getOutputParts();
159
160 /**
161 * Map of wsdl:fault part name and the binding as {@link ParameterBinding}
162 *
163 * @return empty Map if there is no parts
164 */
165 public Map<String, ParameterBinding> getFaultParts();
95 166
96 /** 167 /**
97 * Gets the payload QName of the request message. 168 * Gets the payload QName of the request message.
98 * 169 *
99 * <p> 170 * <p>
100 * It's possible for an operation to define no body part, in which case 171 * It's possible for an operation to define no body part, in which case
101 * this method returns null. 172 * this method returns null.
102 */ 173 */
103 @Nullable QName getReqPayloadName(); 174 @Nullable QName getRequestPayloadName();
104 175
105 /** 176 /**
106 * Gets the payload QName of the response message. 177 * Gets the payload QName of the response message.
107 * 178 *
108 * <p> 179 * <p>
109 * It's possible for an operation to define no body part, in which case 180 * It's possible for an operation to define no body part, in which case
110 * this method returns null. 181 * this method returns null.
111 */ 182 */
112 @Nullable QName getResPayloadName(); 183 @Nullable QName getResponsePayloadName();
113 184
114 /** 185 /**
115 * Gets the namespace of request payload. 186 * Gets the namespace of request payload.
116 */ 187 */
117 String getRequestNamespace(); 188 String getRequestNamespace();

mercurial