public static final class DOFSystem.Config.BuilderUnsecure
extends java.lang.Object
DOFSystem
configurations.
These configurations are immutable once built, and so
the builder allows them to be created (and modified) up until they are built.Constructor and Description |
---|
BuilderUnsecure()
Constructs a new builder using the default unsecure configuration (see
DOFSystem.Config.Builder() ). |
Modifier and Type | Method and Description |
---|---|
DOFSystem.Config |
build()
Return a configuration based on the current settings of the builder.
|
DOFSystem |
createSystem(DOF dof,
int timeout)
This is a convenience method for creating the system with the implied
DOFSystem.Config . |
DOFSystem.Config.BuilderUnsecure |
setName(java.lang.String name)
Set the name of the system.
|
DOFSystem.Config.BuilderUnsecure |
setReceiveFilter(DOFOperation.Filter receiveFilter)
Set the receive filter of the system.
|
DOFSystem.Config.BuilderUnsecure |
setSendFilter(DOFOperation.Filter sendFilter)
Set the send filter of the system.
|
public BuilderUnsecure()
DOFSystem.Config.Builder()
).public DOFSystem.Config.BuilderUnsecure setName(java.lang.String name)
name
- The system name. null means you want the system named automatically (sys1, sys2, etc.)public DOFSystem.Config.BuilderUnsecure setSendFilter(DOFOperation.Filter sendFilter)
sendFilter
- The system's send filter. null
means none.public DOFSystem.Config.BuilderUnsecure setReceiveFilter(DOFOperation.Filter receiveFilter)
receiveFilter
- The system's receive filter. null
means none.public DOFSystem.Config build()
public DOFSystem createSystem(DOF dof, int timeout) throws DOFException
DOFSystem.Config
.dof
- The DOF to use to create the system.timeout
- Controls how long (in milliseconds) to wait for authentication when credentials have been set in the configuration. If the configuration does not
include credentials, the timeout may be zero.DOFException
- If unable to authenticate the system when credentials have been set in the configuration.