public final class JavaMethodImpl extends Object implements JavaMethod
| Modifier and Type | Field and Description |
|---|---|
(package private) AbstractSEIModelImpl |
owner |
(package private) List<ParameterImpl> |
requestParams |
(package private) List<ParameterImpl> |
responseParams |
| Constructor and Description |
|---|
JavaMethodImpl(AbstractSEIModelImpl owner,
Method method,
Method seiMethod,
MetadataReader metadataReader) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addException(CheckedExceptionImpl ce) |
(package private) void |
addParameter(ParameterImpl p) |
(package private) void |
addRequestParameter(ParameterImpl p) |
(package private) void |
addResponseParameter(ParameterImpl p) |
(package private) void |
fillTypes(List<TypeInfo> types) |
(package private) void |
freeze(WSDLPort portType) |
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
|
(package private) void |
setBinding(SOAPBinding binding) |
(package private) void |
setMEP(MEP mep) |
void |
setOperationQName(QName name) |
void |
setRequestPayloadName(QName n) |
final List<ParameterImpl> requestParams
final List<ParameterImpl> responseParams
final AbstractSEIModelImpl owner
public JavaMethodImpl(AbstractSEIModelImpl owner, Method method, Method seiMethod, MetadataReader metadataReader)
owner - method - : Implementation class methodseiMethod - : corresponding SEI Method.
Is there is no SEI, it should be Implementation class methodpublic ActionBasedOperationSignature getOperationSignature()
public SEIModel getOwner()
JavaMethodSEIModel that owns this model.getOwner in interface JavaMethodpublic Method getMethod()
JavaMethod
@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
getMethod in interface JavaMethodJavaMethod}public Method getSEIMethod()
JavaMethod
@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
getSEIMethod in interface JavaMethodJavaMethod}public MEP getMEP()
getMEP in interface JavaMethodvoid setMEP(MEP mep)
mep - The mep to set.public SOAPBinding getBinding()
JavaMethodSOAPBinding isntance.getBinding in interface JavaMethodvoid setBinding(SOAPBinding binding)
binding - public WSDLBoundOperation getOperation()
WSDLBoundOperation Operation associated with this
operation.public void setOperationQName(QName name)
public QName getOperationQName()
public String getSOAPAction()
public String getOperationName()
JavaMethodgetOperationName in interface JavaMethodpublic String getRequestMessageName()
JavaMethodgetRequestMessageName in interface JavaMethodpublic String getResponseMessageName()
JavaMethodgetResponseMessageName in interface JavaMethodMEP.isOneWay()public void setRequestPayloadName(QName n)
@Nullable public QName getRequestPayloadName()
JavaMethodgetRequestPayloadName in interface JavaMethod@Nullable public QName getResponsePayloadName()
JavaMethodgetResponsePayloadName in interface JavaMethodpublic List<ParameterImpl> getRequestParameters()
public List<ParameterImpl> getResponseParameters()
void addParameter(ParameterImpl p)
void addRequestParameter(ParameterImpl p)
void addResponseParameter(ParameterImpl p)
public int getInputParametersCount()
void addException(CheckedExceptionImpl ce)
ce - public CheckedExceptionImpl getCheckedException(Class exceptionClass)
exceptionClass - public List<CheckedExceptionImpl> getCheckedExceptions()
public String getInputAction()
public String getOutputAction()
public CheckedExceptionImpl getCheckedException(com.sun.xml.bind.api.TypeReference detailType)
detailType - public boolean isAsync()
void freeze(WSDLPort portType)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.