public class WebServiceConnectOptions
extends java.lang.Object
implements java.io.Externalizable
See the WebServiceHelper
for details about how these options are validated.
Constructor and Description |
---|
WebServiceConnectOptions()
Default constructor used by externalization mechanism.
|
WebServiceConnectOptions(java.lang.String wsdlDocument)
Create a new container for web-service connection options.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBindingName()
Get the binding name targeted by this connection.
|
java.lang.String |
getBindingNamespace()
Get the namespace associated with this
binding . |
int |
getConnectionLifetime()
Gets the wait time after which a client times out in a blocking scenario.
|
int |
getMaxConnections()
Gets the maximum number of connections maintained between the client and the Web Server
for asynchronous requests.
|
java.lang.String |
getPortName()
Get the port type name targeted by this connection.
|
java.lang.String |
getServiceName()
Get the service targeted by this connection.
|
java.lang.String |
getServiceNamespace()
Get the namespace for the given
service . |
java.lang.String |
getSoapEndpoint()
Get the SOAP endpoint targeted by this connection.
|
java.lang.String |
getSoapEndpointPassword()
Get the password for the SOAP endpoint targeted by this connection.
|
java.lang.String |
getSoapEndpointUserid()
Get the user-id for the SOAP endpoint targeted by this connection.
|
java.lang.String |
getTargetNamespace()
Get the namespace targeted by the service.
|
java.lang.String |
getWsdlDocument()
Get the WSDL document associated with this connection.
|
java.lang.String |
getWsdlPassword()
Get the WSDL password associated with this connection.
|
java.lang.String |
getWsdlUserid()
Get the WSDL user-id associated with this connection.
|
boolean |
isNoHostVerify()
Set the
noHostVerify option. |
boolean |
isNoSessionReuse()
Set the
noSessionReuse option. |
void |
readExternal(java.io.ObjectInput input)
Restore this object contents by calling the methods of
DataInput for primitive types
and readObject strings. |
void |
setBindingName(java.lang.String binding)
Set the binding targeted by this connection.
|
void |
setBindingNamespace(java.lang.String bindingNamespace)
Set the namespace for the
binding targeted by this connection. |
void |
setConnectionLifetime(int connectionLifetime)
Sets the wait time after which a client times out in a blocking scenario.
|
void |
setMaxConnections(int maxConnections)
Sets the maximum number of connections maintained between the client and the Web Server
for asynchronous requests.
|
void |
setNoHostVerify(boolean noHostVerify)
Set the
noHostVerify option. |
void |
setNoSessionReuse(boolean noSessionReuse)
Set the
noSessionReuse option. |
void |
setPortName(java.lang.String port)
Set the port targeted by this connection.
|
void |
setServiceName(java.lang.String service)
Set the service targeted by this connection.
|
void |
setServiceNamespace(java.lang.String serviceNamespace)
Set the namespace for the given
service . |
void |
setSoapEndpoint(java.lang.String soapEndpoint)
Set the SOAP endpoint targeted by this connection.
|
void |
setSoapEndpointPassword(java.lang.String soapEndpointPassword)
Set the password for the SOAP endpoint targeted by this connection.
|
void |
setSoapEndpointUserid(java.lang.String soapEndpointUserid)
Set the user-id for the SOAP endpoint targeted by this connection.
|
void |
setTargetNamespace(java.lang.String targetNamespace)
Set the namespace targeted by the service.
|
void |
setWsdlPassword(java.lang.String wsdlPassword)
Set the WSDL password associated with this connection.
|
void |
setWsdlUserid(java.lang.String wsdlUserid)
Set the WSDL user-id associated with this connection.
|
void |
writeExternal(java.io.ObjectOutput out)
Save internal state of this object to
objectOutput . |
private java.lang.String wsdlDocument
WebServiceHelper.CONNECT_OPTION_WSDL
option.private java.lang.String wsdlUserid
WebServiceHelper.CONNECT_OPTION_WSDL_USERID
option.private java.lang.String wsdlPassword
WebServiceHelper.CONNECT_OPTION_WSDL_PASSWORD
option.private java.lang.String service
WebServiceHelper.CONNECT_OPTION_SERVICE
option.private java.lang.String serviceNamespace
WebServiceHelper.CONNECT_OPTION_SERVICE_NAMESPACE
option.private java.lang.String port
WebServiceHelper.CONNECT_OPTION_PORT
option.private java.lang.String binding
WebServiceHelper.CONNECT_OPTION_BINDING
option.private java.lang.String bindingNamespace
WebServiceHelper.CONNECT_OPTION_BINDING_NAMESPACE
option.private java.lang.String soapEndpoint
WebServiceHelper.CONNECT_OPTION_SOAP_ENDPOINT
option.private java.lang.String soapEndpointUserid
WebServiceHelper.CONNECT_OPTION_SOAP_ENDPOINT_USER
option.private java.lang.String soapEndpointPassword
WebServiceHelper.CONNECT_OPTION_SOAP_ENDPOINT_PASSWORD
option.private java.lang.String targetNamespace
WebServiceHelper.CONNECT_OPTION_TARGET_NAMESPACE
option.private int maxConnections
WebServiceHelper.CONNECT_OPTION_MAX_CONNECTIONS
option.private int connectionLifetime
WebServiceHelper.CONNECT_OPTION_CONNECTION_LIFETIME
option.private boolean noSessionReuse
WebServiceHelper.CONNECT_OPTION_NO_SESSION_REUSE
option.private boolean noHostVerify
WebServiceHelper.CONNECT_OPTION_NO_HOST_VERIFY
option.public WebServiceConnectOptions()
public WebServiceConnectOptions(java.lang.String wsdlDocument)
wsdlDocument
- The WSDL document targeted by this web-service connection.public java.lang.String getWsdlDocument()
wsdlDocument
field.public java.lang.String getWsdlUserid()
wsdlUserid
field.public void setWsdlUserid(java.lang.String wsdlUserid)
wsdlUserid
- The new value for the wsdlUserid
field.public java.lang.String getWsdlPassword()
wsdlPassword
field.public void setWsdlPassword(java.lang.String wsdlPassword)
wsdlPassword
- The new value for the wsdlPassword
field.public java.lang.String getServiceName()
service
field.public void setServiceName(java.lang.String service)
service
- The new value for the service
field.public java.lang.String getServiceNamespace()
service
.serviceNamespace
field.public void setServiceNamespace(java.lang.String serviceNamespace)
service
.serviceNamespace
- The new value for the serviceNamespace
field.public java.lang.String getPortName()
port
field.public void setPortName(java.lang.String port)
port
- The new value for the port
field.public java.lang.String getBindingName()
binding
field.public void setBindingName(java.lang.String binding)
binding
- The new value for the binding
field.public java.lang.String getBindingNamespace()
binding
.bindingNamespace
field.public void setBindingNamespace(java.lang.String bindingNamespace)
binding
targeted by this connection.bindingNamespace
- The new value for the bindingNamespace
field.public java.lang.String getSoapEndpoint()
soapEndpoint
field.public void setSoapEndpoint(java.lang.String soapEndpoint)
soapEndpoint
- The new value for the soapEndpoint
field.public java.lang.String getSoapEndpointUserid()
soapEndpointUserid
field.public void setSoapEndpointUserid(java.lang.String soapEndpointUserid)
soapEndpointUserid
- The new value for the soapEndpointUserid
field.public java.lang.String getSoapEndpointPassword()
soapEndpointPassword
field.public void setSoapEndpointPassword(java.lang.String soapEndpointPassword)
soapEndpointPassword
- The new value for the soapEndpointPassword
field.public java.lang.String getTargetNamespace()
targetNamespace
field.public void setTargetNamespace(java.lang.String targetNamespace)
targetNamespace
- The new value for the targetNamespace
field.public int getMaxConnections()
An equivalent in java would be the http.connection-manager.max-per-host
.
public void setMaxConnections(int maxConnections)
maxConnections
- The maximum number of simultaneous (parallel) connections maintained between the
client and Web service for asynchronous requests.public int getConnectionLifetime()
In P4GL, this is defined as the maximum number of seconds that a given connection can be reused for asynchronous requests before it is destroyed.
The default value is 300 seconds.
public void setConnectionLifetime(int connectionLifetime)
In P4GL, this is defined as the maximum number of seconds that a given connection can be reused for asynchronous requests before it is destroyed.
connectionLifetime
- The connection lifetime (in seconds).public boolean isNoSessionReuse()
noSessionReuse
option. If true
, connection uses a new SSL session ID
when reconnecting to the same Web server using HTTPS.public void setNoSessionReuse(boolean noSessionReuse)
noSessionReuse
option. If true
, connection uses a new SSL session ID
when reconnecting to the same Web server using HTTPS.noSessionReuse
- New value for the option.public boolean isNoHostVerify()
noHostVerify
option. If true
, disables host verification for
connection using HTTPS.public void setNoHostVerify(boolean noHostVerify)
noHostVerify
option. If true
, disables host verification for
connection using HTTPS.noHostVerify
- New value for the option.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
objectOutput
.writeExternal
in interface java.io.Externalizable
out
- The stream to write the object to.java.io.IOException
- Includes any I/O exceptions that may occur.public void readExternal(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException
DataInput
for primitive types
and readObject
strings. The method reads the values in the same sequence and with
the same types as were written by writeExternal(java.io.ObjectOutput)
.readExternal
in interface java.io.Externalizable
input
- The stream to read data from in order to restore the object.java.io.IOException
- If I/O errors occur.java.lang.ClassNotFoundException
- If the class for an object being restored cannot be found.