Package com.sun.xml.ws.api.model
Interface JavaMethod
-
- All Known Implementing Classes:
JavaMethodImpl
public interface JavaMethodAbstracts the annotatedMethodof a SEI.- Author:
- Vivek Pandey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SOAPBindinggetBinding()Binding object - aSOAPBindingisntance.Collection<? extends CheckedException>getCheckedExceptions()Gives the checked Exception thrown from this method.MEPgetMEP()MethodgetMethod()On the server side, it uses this for invocation of the web serviceStringgetOperationName()Gives the wsdl:operation@name valueSEIModelgetOwner()Gets the rootSEIModelthat owns this model.StringgetRequestMessageName()Gives the request wsdl:message@name valueQNamegetRequestPayloadName()Gives soap:Body's first child's name for request message.StringgetResponseMessageName()Gives the response wsdl:messageName valueQNamegetResponsePayloadName()Gives soap:Body's first child's name for response message.MethodgetSEIMethod()This should be used if you want to access annotations on WebMethod Returns the SEI method if there is one.
-
-
-
Method Detail
-
getMethod
@NotNull Method getMethod()
On the server side, it uses this for invocation of the web service@
WebService(endpointInterface="I") class A { } In this case, it retuns A's method@
WebService(endpointInterface="I") class A implements I { } In this case, it returns A's method@
WebServiceclass A { } In this case, it returns A's method- Returns:
- Returns the java
Method
-
getSEIMethod
@NotNull Method getSEIMethod()
This should be used if you want to access annotations on WebMethod Returns the SEI method if there is one.@
WebService(endpointInterface="I") class A { } In this case, it retuns I's method@
WebService(endpointInterface="I") class A implements I { } In this case, it returns I's method@
WebServiceclass A { } In this case, it returns A's method- Returns:
- Returns the java
Method
-
getBinding
SOAPBinding getBinding()
Binding object - aSOAPBindingisntance.- Returns:
- the Binding object
-
getRequestMessageName
@NotNull String getRequestMessageName()
Gives the request wsdl:message@name value
-
getResponseMessageName
@Nullable String getResponseMessageName()
Gives the response wsdl:messageName value- Returns:
- null if its a oneway operation that is getMEP().isOneWay()==true.
- See Also:
MEP.isOneWay()
-
getRequestPayloadName
@Nullable QName getRequestPayloadName()
Gives soap:Body's first child's name for request message.- Returns:
- null if this operation doesn't have any request parameter bound to the body.
-
getResponsePayloadName
@Nullable QName getResponsePayloadName()
Gives soap:Body's first child's name for response message.- Returns:
- null if this operation doesn't have any response parameter bound to the body.
-
getCheckedExceptions
Collection<? extends CheckedException> getCheckedExceptions()
Gives the checked Exception thrown from this method.- Returns:
- Returns the
CheckedException.
-
-