org.opcfoundation.ua.transport
Class TransportChannelSettings

java.lang.Object
  extended by org.opcfoundation.ua.transport.TransportChannelSettings
All Implemented Interfaces:
Cloneable

public class TransportChannelSettings
extends Object
implements Cloneable

Transport channel settings for Client.


Constructor Summary
TransportChannelSettings()
          Constructor for TransportChannelSettings.
TransportChannelSettings(EndpointDescription description, EndpointConfiguration configuration, Cert clientCertificate, PrivKey privateKey, CertificateValidator certificateValidator, NamespaceTable namespaceUris)
          Create Transport channel settings for a opctcp connection
TransportChannelSettings(EndpointDescription description, EndpointConfiguration configuration, KeyPair keypair, CertificateValidator certValidator, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
          Create Transport channel settings for a https connection
 
Method Summary
 TransportChannelSettings clone()
          
 EndpointConfiguration getConfiguration()
          Getter for the field configuration.
 EndpointDescription getDescription()
          Getter for the field description.
 HttpsSettings getHttpsSettings()
          Getter for the field httpsSettings.
 NamespaceTable getNamespaceUris()
          Getter for the field namespaceUris.
 OpcTcpSettings getOpctcpSettings()
          Getter for the field opctcpSettings.
 Cert getServerCertificate()
          getServerCertificate.
 void readFrom(TransportChannelSettings tcs)
          readFrom.
 void setConfiguration(EndpointConfiguration configuration)
          Setter for the field configuration.
 void setDescription(EndpointDescription description)
          Setter for the field description.
 void setHttpsSettings(HttpsSettings httpsSettings)
          Setter for the field httpsSettings.
 void setNamespaceUris(NamespaceTable namespaceUris)
          Setter for the field namespaceUris.
 void setOpctcpSettings(OpcTcpSettings opctcpSettings)
          Setter for the field opctcpSettings.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportChannelSettings

public TransportChannelSettings()

Constructor for TransportChannelSettings.


TransportChannelSettings

public TransportChannelSettings(EndpointDescription description,
                                EndpointConfiguration configuration,
                                Cert clientCertificate,
                                PrivKey privateKey,
                                CertificateValidator certificateValidator,
                                NamespaceTable namespaceUris)
                         throws RuntimeServiceResultException
Create Transport channel settings for a opctcp connection

Parameters:
description - a EndpointDescription object.
configuration - a EndpointConfiguration object.
clientCertificate - a Cert object.
privateKey - a PrivKey object.
certificateValidator - a CertificateValidator object.
namespaceUris - (optional)
Throws:
RuntimeServiceResultException - if any.

TransportChannelSettings

public TransportChannelSettings(EndpointDescription description,
                                EndpointConfiguration configuration,
                                KeyPair keypair,
                                CertificateValidator certValidator,
                                org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
                         throws RuntimeServiceResultException
Create Transport channel settings for a https connection

Parameters:
description - a EndpointDescription object.
configuration - a EndpointConfiguration object.
keypair - a KeyPair object.
certValidator - a CertificateValidator object.
hostnameVerifier - a X509HostnameVerifier object.
Throws:
RuntimeServiceResultException - if any.
Method Detail

getServerCertificate

public Cert getServerCertificate()

getServerCertificate.

Returns:
a Cert object.

getDescription

public EndpointDescription getDescription()

Getter for the field description.

Returns:
a EndpointDescription object.

setDescription

public void setDescription(EndpointDescription description)

Setter for the field description.

Parameters:
description - a EndpointDescription object.

getConfiguration

public EndpointConfiguration getConfiguration()

Getter for the field configuration.

Returns:
a EndpointConfiguration object.

setConfiguration

public void setConfiguration(EndpointConfiguration configuration)

Setter for the field configuration.

Parameters:
configuration - a EndpointConfiguration object.

getOpctcpSettings

public OpcTcpSettings getOpctcpSettings()

Getter for the field opctcpSettings.

Returns:
a OpcTcpSettings object.

setOpctcpSettings

public void setOpctcpSettings(OpcTcpSettings opctcpSettings)

Setter for the field opctcpSettings.

Parameters:
opctcpSettings - a OpcTcpSettings object.

getHttpsSettings

public HttpsSettings getHttpsSettings()

Getter for the field httpsSettings.

Returns:
a HttpsSettings object.

setHttpsSettings

public void setHttpsSettings(HttpsSettings httpsSettings)

Setter for the field httpsSettings.

Parameters:
httpsSettings - a HttpsSettings object.

readFrom

public void readFrom(TransportChannelSettings tcs)

readFrom.

Parameters:
tcs - a TransportChannelSettings object.

clone

public TransportChannelSettings clone()

Overrides:
clone in class Object

getNamespaceUris

public NamespaceTable getNamespaceUris()

Getter for the field namespaceUris.

Returns:
a NamespaceTable object.

setNamespaceUris

public void setNamespaceUris(NamespaceTable namespaceUris)

Setter for the field namespaceUris.

Parameters:
namespaceUris - a NamespaceTable object.


Copyright © 2018. All rights reserved.