com.sun.xml.ws.model
Class JavaMethodImpl

java.lang.Object
  extended by com.sun.xml.ws.model.JavaMethodImpl
All Implemented Interfaces:
JavaMethod

public final class JavaMethodImpl
extends Object
implements JavaMethod

Build this runtime model using java SEI and annotations


Constructor Summary
JavaMethodImpl(AbstractSEIModelImpl owner, Method method, Method seiMethod, MetadataReader metadataReader)
           
 
Method Summary
 SOAPBinding getBinding()
          Binding object - a SOAPBinding isntance.
 CheckedExceptionImpl getCheckedException(Class exceptionClass)
           
 CheckedExceptionImpl getCheckedException(com.sun.xml.bind.api.TypeReference detailType)
          Deprecated.  
 List<CheckedExceptionImpl> getCheckedExceptions()
           
 String getInputAction()
           
 int getInputParametersCount()
          Deprecated. no longer use in the new architecture
 MEP getMEP()
           
 Method getMethod()
          On the server side, it uses this for invocation of the web service
 WSDLBoundOperation getOperation()
          Deprecated.  
 String getOperationName()
          Gives the wsdl:operation@name value
 QName getOperationQName()
           
 ActionBasedOperationSignature getOperationSignature()
           
 String getOutputAction()
           
 SEIModel getOwner()
          Gets the root SEIModel that owns this model.
 String getRequestMessageName()
          Gives the request wsdl:message@name value
 List<ParameterImpl> getRequestParameters()
           
 QName getRequestPayloadName()
          Gives soap:Body's first child's name for request message.
 String getResponseMessageName()
          Gives the response wsdl:messageName value
 List<ParameterImpl> getResponseParameters()
           
 QName getResponsePayloadName()
          Gives soap:Body's first child's name for response message.
 Method getSEIMethod()
          This should be used if you want to access annotations on WebMethod Returns the SEI method if there is one.
 String getSOAPAction()
           
 boolean isAsync()
          Returns if the java method is async
 void setOperationQName(QName name)
           
 void setRequestPayloadName(QName n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMethodImpl

public JavaMethodImpl(AbstractSEIModelImpl owner,
                      Method method,
                      Method seiMethod,
                      MetadataReader metadataReader)
Parameters:
owner -
method - : Implementation class method
seiMethod - : corresponding SEI Method. Is there is no SEI, it should be Implementation class method
Method Detail

getOperationSignature

public ActionBasedOperationSignature getOperationSignature()

getOwner

public SEIModel getOwner()
Description copied from interface: JavaMethod
Gets the root SEIModel that owns this model.

Specified by:
getOwner in interface JavaMethod

getMethod

public Method getMethod()
Description copied from interface: JavaMethod
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

Specified by:
getMethod in interface JavaMethod
Returns:
Returns the method.
See Also:
JavaMethod

getSEIMethod

public Method getSEIMethod()
Description copied from interface: JavaMethod
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

Specified by:
getSEIMethod in interface JavaMethod
Returns:
Returns the SEI method where annotations are present
See Also:
JavaMethod

getMEP

public MEP getMEP()
Specified by:
getMEP in interface JavaMethod
Returns:
Returns the mep.

getBinding

public SOAPBinding getBinding()
Description copied from interface: JavaMethod
Binding object - a SOAPBinding isntance.

Specified by:
getBinding in interface JavaMethod
Returns:
the Binding object

getOperation

public WSDLBoundOperation getOperation()
Deprecated. 

Returns the WSDLBoundOperation Operation associated with JavaMethodImpl operation.

Returns:
the WSDLBoundOperation for this JavaMethod

setOperationQName

public void setOperationQName(QName name)

getOperationQName

public QName getOperationQName()

getSOAPAction

public String getSOAPAction()

getOperationName

public String getOperationName()
Description copied from interface: JavaMethod
Gives the wsdl:operation@name value

Specified by:
getOperationName in interface JavaMethod

getRequestMessageName

public String getRequestMessageName()
Description copied from interface: JavaMethod
Gives the request wsdl:message@name value

Specified by:
getRequestMessageName in interface JavaMethod

getResponseMessageName

public String getResponseMessageName()
Description copied from interface: JavaMethod
Gives the response wsdl:messageName value

Specified by:
getResponseMessageName in interface JavaMethod
Returns:
null if its a oneway operation that is getMEP().isOneWay()==true.
See Also:
MEP.isOneWay()

setRequestPayloadName

public void setRequestPayloadName(QName n)

getRequestPayloadName

@Nullable
public QName getRequestPayloadName()
Description copied from interface: JavaMethod
Gives soap:Body's first child's name for request message.

Specified by:
getRequestPayloadName in interface JavaMethod
Returns:
soap:Body's first child name for request message.

getResponsePayloadName

@Nullable
public QName getResponsePayloadName()
Description copied from interface: JavaMethod
Gives soap:Body's first child's name for response message.

Specified by:
getResponsePayloadName in interface JavaMethod
Returns:
soap:Body's first child name for response message.

getRequestParameters

public List<ParameterImpl> getRequestParameters()
Returns:
returns unmodifiable list of request parameters

getResponseParameters

public List<ParameterImpl> getResponseParameters()
Returns:
returns unmodifiable list of response parameters

getInputParametersCount

public int getInputParametersCount()
Deprecated. no longer use in the new architecture

Returns:
Returns number of java method parameters - that will be all the IN, INOUT and OUT holders

getCheckedException

public CheckedExceptionImpl getCheckedException(Class exceptionClass)
Parameters:
exceptionClass -
Returns:
CheckedException corresponding to the exceptionClass. Returns null if not found.

getCheckedExceptions

public List<CheckedExceptionImpl> getCheckedExceptions()
Returns:
a list of checked Exceptions thrown by this method

getInputAction

public String getInputAction()

getOutputAction

public String getOutputAction()

getCheckedException

public CheckedExceptionImpl getCheckedException(com.sun.xml.bind.api.TypeReference detailType)
Deprecated. 

Parameters:
detailType -
Returns:
Gets the CheckedException corresponding to detailType. Returns null if no CheckedExcpetion with the detailType found.

isAsync

public boolean isAsync()
Returns if the java method is async

Returns:
if this is an Asynch


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