author | mkos |
Tue, 02 Dec 2014 15:03:49 +0100 | |
changeset 27837 | 86d4f46e622a |
parent 25871 | b80b84e87032 |
permissions | -rw-r--r-- |
12009 | 1 |
/* |
27837
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
2 |
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
12009 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package com.sun.xml.internal.ws.api.model; |
|
27 |
||
28 |
import com.sun.istack.internal.NotNull; |
|
29 |
import com.sun.istack.internal.Nullable; |
|
30 |
import com.sun.xml.internal.ws.api.model.soap.SOAPBinding; |
|
31 |
||
32 |
import javax.xml.namespace.QName; |
|
33 |
import java.lang.reflect.Method; |
|
27837
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
34 |
import java.util.Collection; |
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
35 |
|
16791 | 36 |
import javax.jws.WebService; |
12009 | 37 |
|
38 |
/** |
|
39 |
* Abstracts the annotated {@link Method} of a SEI. |
|
40 |
* |
|
41 |
* @author Vivek Pandey |
|
42 |
*/ |
|
43 |
public interface JavaMethod { |
|
44 |
||
45 |
/** |
|
46 |
* Gets the root {@link SEIModel} that owns this model. |
|
47 |
*/ |
|
48 |
SEIModel getOwner(); |
|
49 |
||
50 |
/** |
|
51 |
* On the server side, it uses this for invocation of the web service |
|
52 |
* |
|
53 |
* <p> |
|
16791 | 54 |
* {@literal @}{@link WebService}(endpointInterface="I") |
12009 | 55 |
* class A { } |
56 |
* |
|
57 |
* In this case, it retuns A's method |
|
58 |
* |
|
59 |
* <p> |
|
16791 | 60 |
* {@literal @}{@link WebService}(endpointInterface="I") |
12009 | 61 |
* class A implements I { } |
62 |
* In this case, it returns A's method |
|
63 |
* |
|
64 |
* <p> |
|
16791 | 65 |
* {@literal @}{@link WebService} |
12009 | 66 |
* class A { } |
67 |
* In this case, it returns A's method |
|
68 |
* |
|
69 |
* @return Returns the java {@link Method} |
|
70 |
*/ |
|
71 |
@NotNull Method getMethod(); |
|
72 |
||
73 |
||
74 |
/** |
|
75 |
* This should be used if you want to access annotations on WebMethod |
|
76 |
* Returns the SEI method if there is one. |
|
77 |
* |
|
78 |
* <p> |
|
16791 | 79 |
* {@literal @}{@link WebService}(endpointInterface="I") |
12009 | 80 |
* class A { } |
81 |
* In this case, it retuns I's method |
|
82 |
* |
|
83 |
* <p> |
|
16791 | 84 |
* {@literal @}{@link WebService}(endpointInterface="I") |
12009 | 85 |
* class A implements I { } |
86 |
* In this case, it returns I's method |
|
87 |
* |
|
88 |
* <p> |
|
16791 | 89 |
* {@literal @}{@link WebService} |
12009 | 90 |
* class A { } |
91 |
* In this case, it returns A's method |
|
92 |
* |
|
93 |
* @return Returns the java {@link Method} |
|
94 |
*/ |
|
95 |
@NotNull Method getSEIMethod(); |
|
96 |
||
97 |
/** |
|
98 |
* @return Returns the {@link MEP}. |
|
99 |
*/ |
|
100 |
MEP getMEP(); |
|
101 |
||
102 |
/** |
|
103 |
* Binding object - a {@link SOAPBinding} isntance. |
|
104 |
* |
|
105 |
* @return the Binding object |
|
106 |
*/ |
|
107 |
SOAPBinding getBinding(); |
|
108 |
||
109 |
/** |
|
110 |
* Gives the wsdl:operation@name value |
|
111 |
*/ |
|
112 |
@NotNull String getOperationName(); |
|
113 |
||
114 |
||
115 |
/** |
|
116 |
* Gives the request wsdl:message@name value |
|
117 |
*/ |
|
118 |
@NotNull String getRequestMessageName(); |
|
119 |
||
120 |
/** |
|
121 |
* Gives the response wsdl:messageName value |
|
122 |
* @return null if its a oneway operation that is getMEP().isOneWay()==true. |
|
123 |
* @see com.sun.xml.internal.ws.api.model.MEP#isOneWay() |
|
124 |
*/ |
|
125 |
@Nullable String getResponseMessageName(); |
|
126 |
||
127 |
/** |
|
128 |
* Gives soap:Body's first child's name for request message. |
|
129 |
* |
|
130 |
* @return |
|
131 |
* null if this operation doesn't have any request parameter bound to the body. |
|
132 |
*/ |
|
133 |
@Nullable QName getRequestPayloadName(); |
|
134 |
||
135 |
/** |
|
136 |
* Gives soap:Body's first child's name for response message. |
|
137 |
* |
|
138 |
* @return |
|
139 |
* null if this operation doesn't have any response parameter bound to the body. |
|
140 |
*/ |
|
141 |
@Nullable QName getResponsePayloadName(); |
|
142 |
||
27837
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
143 |
/** |
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
144 |
* Gives the checked Exception thrown from this method. |
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
145 |
* |
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
146 |
* @return Returns the {@link CheckedException}. |
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
147 |
*/ |
86d4f46e622a
8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
mkos
parents:
25871
diff
changeset
|
148 |
Collection<? extends CheckedException> getCheckedExceptions(); |
12009 | 149 |
} |