Package com.sun.xml.ws.model
Class JavaMethodImpl
java.lang.Object
com.sun.xml.ws.model.JavaMethodImpl
- All Implemented Interfaces:
JavaMethod
Build this runtime model using java SEI and annotations
- Author:
- Vivek Pandey
-
Constructor Summary
ConstructorsConstructorDescriptionJavaMethodImpl
(AbstractSEIModelImpl owner, Method method, Method seiMethod, MetadataReader metadataReader) -
Method Summary
Modifier and TypeMethodDescriptionBinding object - aSOAPBinding
isntance.getCheckedException
(TypeReference detailType) Deprecated.getCheckedException
(Class exceptionClass) Gives the checked Exception thrown from this method.int
Deprecated.no longer use in the new architecturegetMEP()
On the server side, it uses this for invocation of the web serviceDeprecated.Gives the wsdl:operation@name valuegetOwner()
Gets the rootSEIModel
that owns this model.Gives the request wsdl:message@name valueGives soap:Body's first child's name for request message.Gives the response wsdl:messageName valueGives soap:Body's first child's name for response message.This should be used if you want to access annotations on WebMethod Returns the SEI method if there is one.boolean
isAsync()
Returns if the java method is asyncvoid
setOperationQName
(QName name) void
-
Constructor Details
-
JavaMethodImpl
public JavaMethodImpl(AbstractSEIModelImpl owner, Method method, Method seiMethod, MetadataReader metadataReader) - Parameters:
owner
-method
- : Implementation class methodseiMethod
- : corresponding SEI Method. Is there is no SEI, it should be Implementation class method
-
-
Method Details
-
getOperationSignature
-
getOwner
Description copied from interface:JavaMethod
Gets the rootSEIModel
that owns this model.- Specified by:
getOwner
in interfaceJavaMethod
-
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 interfaceJavaMethod
- Returns:
- Returns the method.
- See Also:
-
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 interfaceJavaMethod
- Returns:
- Returns the SEI method where annotations are present
- See Also:
-
getMEP
- Specified by:
getMEP
in interfaceJavaMethod
- Returns:
- Returns the mep.
-
getBinding
Description copied from interface:JavaMethod
Binding object - aSOAPBinding
isntance.- Specified by:
getBinding
in interfaceJavaMethod
- Returns:
- the Binding object
-
getOperation
Deprecated.Returns theWSDLBoundOperation
Operation associated withJavaMethodImpl
operation.- Returns:
- the WSDLBoundOperation for this JavaMethod
-
setOperationQName
-
getOperationQName
-
getSOAPAction
-
getOperationName
Description copied from interface:JavaMethod
Gives the wsdl:operation@name value- Specified by:
getOperationName
in interfaceJavaMethod
-
getRequestMessageName
Description copied from interface:JavaMethod
Gives the request wsdl:message@name value- Specified by:
getRequestMessageName
in interfaceJavaMethod
-
getResponseMessageName
Description copied from interface:JavaMethod
Gives the response wsdl:messageName value- Specified by:
getResponseMessageName
in interfaceJavaMethod
- Returns:
- null if its a oneway operation that is getMEP().isOneWay()==true.
- See Also:
-
setRequestPayloadName
-
getRequestPayloadName
Description copied from interface:JavaMethod
Gives soap:Body's first child's name for request message.- Specified by:
getRequestPayloadName
in interfaceJavaMethod
- Returns:
- soap:Body's first child name for request message.
-
getResponsePayloadName
Description copied from interface:JavaMethod
Gives soap:Body's first child's name for response message.- Specified by:
getResponsePayloadName
in interfaceJavaMethod
- Returns:
- soap:Body's first child name for response message.
-
getRequestParameters
- Returns:
- returns unmodifiable list of request parameters
-
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
- Parameters:
exceptionClass
-- Returns:
- CheckedException corresponding to the exceptionClass. Returns null if not found.
-
getCheckedExceptions
Description copied from interface:JavaMethod
Gives the checked Exception thrown from this method.- Specified by:
getCheckedExceptions
in interfaceJavaMethod
- Returns:
- a list of checked Exceptions thrown by this method
-
getInputAction
-
getOutputAction
-
getCheckedException
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
-