private static class WebServiceImpl.WebServiceData
extends java.lang.Object
WebServiceData
uniquely identifies an open connection to a web service. It
can be in one of two states:
Modifier and Type | Field and Description |
---|---|
private int |
id
The id of the open connection.
|
private java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName[][]> |
msgParams
Cache of the resolved parameters, for each message.
|
private javax.xml.namespace.QName[][] |
outMsgParams
The description for output parameters.
|
private java.lang.Object[] |
outputParams
The output parameters for current invocation.
|
private javax.wsdl.PortType |
portType
The WSDL port type.
|
private org.apache.axiom.om.OMElement |
requestMessage
The built request message for current invocation.
|
private org.apache.axiom.om.OMElement |
responseMessage
The response from WebService in current invocation.
|
private org.apache.axis2.client.ServiceClient |
sc
The
ServiceClient for current invocation. |
private javax.wsdl.Service |
service
The WSDL service.
|
private javax.wsdl.Operation |
targetOp
The
Operation for current invocation. |
private javax.wsdl.Definition |
wsdlDef
The WSDL document definition.
|
private WebServiceConnectOptions |
wsOptions
A collection of all web service options used to create this connection.
|
private java.util.List<org.apache.ws.commons.schema.XmlSchema> |
xmlSchemas
List of XML Schema's loaded from the WSDL document.
|
Constructor and Description |
---|
WebServiceData(int id,
javax.wsdl.Definition wsdlDef,
javax.wsdl.PortType portType,
javax.wsdl.Service service,
WebServiceConnectOptions wsOptions)
The constructors initialize the final fields that compose the immutable part of the
connection.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanupInvocation()
Cleans the temporary state used during invocation sequence.
|
int |
getConnectionLifetime()
Get the maximum number of seconds that a given connection can be reused for asynchronous
requests before it is destroyed.
|
int |
getId()
Get the id of this open connection.
|
int |
getMaxConnections()
Get the maximum number of simultaneous (parallel) connections maintained between the
client and Web service for asynchronous requests.
|
javax.xml.namespace.QName[][] |
getOutputMsgParameters()
Get the description for output parameters.
|
java.lang.Object[] |
getOutputParameters()
Get the output parameters for current invocation.
|
org.apache.axiom.om.OMElement |
getRequestMessage()
Get the built request message for current invocation.
|
org.apache.axiom.om.OMElement |
getResponseMessage()
Get the response from WebService in current invocation.
|
org.apache.axis2.client.ServiceClient |
getServiceClient()
Get the
ServiceClient for current invocation. |
java.lang.String |
getSoapEndpoint()
Get the optional the SOAP endpoint.
|
java.lang.String |
getSoapEndpointPassword()
Get the optional the SOAP endpoint password.
|
java.lang.String |
getSoapEndpointUserid()
Get the optional the SOAP endpoint user ID.
|
javax.wsdl.Operation |
getTargetOperation()
Get the
Operation for current invocation. |
java.util.List<org.apache.ws.commons.schema.XmlSchema> |
getXmlSchemas()
Get the list of XML Schema's loaded from the WSDL document.
|
boolean |
isNoHostVerify()
Specifies whether host verification for connection using HTTPS should be disabled.
|
boolean |
isSessionReuse()
Instruct the connection whether to reuse or create a new SSL session when reconnecting
to the same Web server using HTTPS.
|
void |
setOutputParameters(java.lang.Object[] outputParams,
javax.xml.namespace.QName[][] outMsgParams)
Set details about output parameters that will be used in a future call.
|
void |
setRequestMessage(org.apache.axiom.om.OMElement requestMessage)
Set the built request message for current invocation.
|
void |
setResponseMessage(org.apache.axiom.om.OMElement responseMessage)
Set the response from WebService in current invocation.
|
void |
setServiceClient(org.apache.axis2.client.ServiceClient sc)
Set the
ServiceClient for current invocation. |
void |
setTargetOperation(javax.wsdl.Operation targetOp)
Set the
Operation for current invocation. |
void |
setXmlSchemas(java.util.List<org.apache.ws.commons.schema.XmlSchema> xmlSchemas)
Get the list of XML Schema's loaded from the WSDL document.
|
private final int id
private final javax.wsdl.Definition wsdlDef
private final javax.wsdl.PortType portType
private final javax.wsdl.Service service
private final WebServiceConnectOptions wsOptions
private org.apache.axis2.client.ServiceClient sc
ServiceClient
for current invocation. null
in idle state.private javax.wsdl.Operation targetOp
Operation
for current invocation. null
in idle state.private org.apache.axiom.om.OMElement requestMessage
null
in idle state.private org.apache.axiom.om.OMElement responseMessage
null
in idle state.private java.lang.Object[] outputParams
null
in idle state.private javax.xml.namespace.QName[][] outMsgParams
null
in idle state.private java.util.List<org.apache.ws.commons.schema.XmlSchema> xmlSchemas
private final java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName[][]> msgParams
public WebServiceData(int id, javax.wsdl.Definition wsdlDef, javax.wsdl.PortType portType, javax.wsdl.Service service, WebServiceConnectOptions wsOptions)
id
- The id of the open connection.wsdlDef
- The WSDL document definition.portType
- The WSDL port type.service
- The WSDL service.wsOptions
- A collection of all web service options used for connection.public int getId()
public java.lang.String getSoapEndpoint()
public java.lang.String getSoapEndpointUserid()
public java.lang.String getSoapEndpointPassword()
public org.apache.axis2.client.ServiceClient getServiceClient()
ServiceClient
for current invocation. null
in idle state.ServiceClient
for current invocation.public boolean isSessionReuse()
true
if every SSL connections should be reused.public boolean isNoHostVerify()
true
if host verification for SSL connections will be skipped.public int getMaxConnections()
public int getConnectionLifetime()
public void setServiceClient(org.apache.axis2.client.ServiceClient sc)
ServiceClient
for current invocation.sc
- The new ServiceClient
for current invocation.public org.apache.axiom.om.OMElement getRequestMessage()
null
.public void setRequestMessage(org.apache.axiom.om.OMElement requestMessage)
requestMessage
- the new built request message for current invocation.public org.apache.axiom.om.OMElement getResponseMessage()
null
in
idle state.public void setResponseMessage(org.apache.axiom.om.OMElement responseMessage)
responseMessage
- the new response from WebService in current invocation.public javax.wsdl.Operation getTargetOperation()
Operation
for current invocation.Operation
for current invocation. null
in idle state.public void setTargetOperation(javax.wsdl.Operation targetOp)
Operation
for current invocation.targetOp
- the new Operation
for current invocation.public java.util.List<org.apache.ws.commons.schema.XmlSchema> getXmlSchemas()
public void setXmlSchemas(java.util.List<org.apache.ws.commons.schema.XmlSchema> xmlSchemas)
xmlSchemas
- the new list of XML Schema's loaded from the WSDL document.public java.lang.Object[] getOutputParameters()
null
in idle state.public javax.xml.namespace.QName[][] getOutputMsgParameters()
null
in idle state.public void setOutputParameters(java.lang.Object[] outputParams, javax.xml.namespace.QName[][] outMsgParams)
outputParams
- the output parameters for current invocation.outMsgParams
- the description for output parameters.public void cleanupInvocation()