com.sun.xml.ws.api.model
Interface JavaMethod

All Known Implementing Classes:
JavaMethodImpl

public interface JavaMethod

Abstracts the annotated Method of a SEI.


Method Summary
 SOAPBinding getBinding()
          Binding object - a SOAPBinding isntance.
 MEP getMEP()
           
 java.lang.reflect.Method getMethod()
          On the server side, it uses this for invocation of the web service
 java.lang.String getOperationName()
          Gives the wsdl:operation@name value
 SEIModel getOwner()
          Gets the root SEIModel that owns this model.
 java.lang.String getRequestMessageName()
          Gives the request wsdl:message@name value
 javax.xml.namespace.QName getRequestPayloadName()
          Gives soap:Body's first child's name for request message.
 java.lang.String getResponseMessageName()
          Gives the response wsdl:messageName value
 javax.xml.namespace.QName getResponsePayloadName()
          Gives soap:Body's first child's name for response message.
 java.lang.reflect.Method getSEIMethod()
          This should be used if you want to access annotations on WebMethod Returns the SEI method if there is one.
 

Method Detail

getOwner

SEIModel getOwner()
Gets the root SEIModel that owns this model.


getMethod

@NotNull
java.lang.reflect.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

@WebService class A { } In this case, it returns A's method

Returns:
Returns the java Method

getSEIMethod

@NotNull
java.lang.reflect.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

@WebService class A { } In this case, it returns A's method

Returns:
Returns the java Method

getMEP

MEP getMEP()
Returns:
Returns the MEP.

getBinding

SOAPBinding getBinding()
Binding object - a SOAPBinding isntance.

Returns:
the Binding object

getOperationName

@NotNull
java.lang.String getOperationName()
Gives the wsdl:operation@name value


getRequestMessageName

@NotNull
java.lang.String getRequestMessageName()
Gives the request wsdl:message@name value


getResponseMessageName

@Nullable
java.lang.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
javax.xml.namespace.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
javax.xml.namespace.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.


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.