|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.UaApplication
public abstract class UaApplication
A common base class for client and server applications.
| Nested Class Summary | |
|---|---|
static class |
UaApplication.a
|
static class |
UaApplication.DiagnosticMask
Bits values used to mask the types of vendor-specific diagnostics. |
static class |
UaApplication.Protocol
|
| Constructor Summary | |
|---|---|
UaApplication()
|
|
| Method Summary | |
|---|---|
static String |
formatUri(UaApplication.Protocol protocol,
String host,
int port,
String serverName)
Compose a valid OPCUA URI string from the parts |
abstract UaAddressSpace |
getAddressSpace()
|
AggregateCalculator |
getAggregateCalculator()
|
org.opcfoundation.ua.transport.security.CertificateValidator |
getCertificateValidator()
|
abstract org.opcfoundation.ua.encoding.EncoderContext |
getEncoderContext()
|
DataTypeDictionary |
getKnownDataTypeDictionary()
|
org.opcfoundation.ua.common.NamespaceTable |
getNamespaceTable()
|
OperationLimits |
getOperationLimits()
|
RegisteredClasses |
getRegisteredClasses()
Returns the RegisteredClasses object of the application. |
static String |
getSdkVersion()
|
static String |
getVersion()
Deprecated. use getSdkVersion(), but note that it does not contain the "v" prefix |
void |
registerClass(Class<? extends UaInstance> clazz)
Register a class representing an UA Type. |
void |
registerClass(Class<? extends UaInstance> clazz,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
Register a class representing an UA Type. |
void |
registerClass(Class<? extends UaInstance> clazz,
org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId)
Register a class representing an UA Type. |
void |
registerClasses(Collection<Class<? extends UaInstance>> classes)
Register given classes for the application. |
protected void |
registerModelInternal(CodegenModel codegenModel)
Register an information model to use in the application. |
void |
setCertificateValidator(org.opcfoundation.ua.transport.security.CertificateValidator certificateValidator)
Define a certificate validator that checks the server certificate after connect. |
void |
setOperationLimits(OperationLimits operationLimits)
Define the operation limits for the application |
protected org.opcfoundation.ua.builtintypes.StatusCode |
validateApplicationCertificate(ApplicationIdentity applicationIdentity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UaApplication()
| Method Detail |
|---|
public static String formatUri(UaApplication.Protocol protocol,
String host,
int port,
String serverName)
protocol - Communication protocolhost - Host name of the computerport - TCP port numberserverName - the server name part of the URI
public static String getSdkVersion()
@Deprecated public static String getVersion()
getSdkVersion(), but note that it does not contain the "v" prefix
public abstract UaAddressSpace getAddressSpace()
public AggregateCalculator getAggregateCalculator()
public org.opcfoundation.ua.transport.security.CertificateValidator getCertificateValidator()
public DataTypeDictionary getKnownDataTypeDictionary()
public abstract org.opcfoundation.ua.encoding.EncoderContext getEncoderContext()
public org.opcfoundation.ua.common.NamespaceTable getNamespaceTable()
public OperationLimits getOperationLimits()
public RegisteredClasses getRegisteredClasses()
RegisteredClasses object of the application.
public void registerClass(Class<? extends UaInstance> clazz)
throws AnnotationException
clazz - The class to register. It must have the TypeDefinitionId annotation.
AnnotationException - If the class does not have the TypeDefinitionId annotation.
public void registerClass(Class<? extends UaInstance> clazz,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
clazz - the classtypeDefinitionId - the TypeDefinitionId of the type
public void registerClass(Class<? extends UaInstance> clazz,
org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId)
clazz - the classtypeDefinitionId - the TypeDefinitionId of the typepublic void registerClasses(Collection<Class<? extends UaInstance>> classes)
classes - that are registeredpublic void setCertificateValidator(org.opcfoundation.ua.transport.security.CertificateValidator certificateValidator)
certificateValidator - public void setOperationLimits(OperationLimits operationLimits)
operationLimits - protected void registerModelInternal(CodegenModel codegenModel)
codegenModel - the InformationModel created by the codegen.protected org.opcfoundation.ua.builtintypes.StatusCode validateApplicationCertificate(ApplicationIdentity applicationIdentity)
applicationIdentity - the certificate to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||