public static final class DOFSystem.Config.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Constructs a new builder using the default configuration.
|
Builder(DOFSystem.Config config)
Construct a new builder based on another configuration.
|
Builder(DOFSystem.State state)
Construct a builder based on a state.
|
Modifier and Type | Method and Description |
---|---|
DOFSystem.Config |
build()
Return a configuration based on the current settings of the builder.
|
DOFSystem.Config.Builder |
setCredentials(DOFCredentials credentials)
Set the credentials of the system.
|
DOFSystem.Config.Builder |
setName(java.lang.String name)
Set the name of the system.
|
DOFSystem.Config.Builder |
setPermissions(DOFPermissionSet permissions)
Set the initial permissions of the system.
|
DOFSystem.Config.Builder |
setPermissionsExtendAllowed(boolean isExtendAllowed)
Set whether the system is allowed to extend the initial permission set.
|
DOFSystem.Config.Builder |
setReceiveFilter(DOFOperation.Filter receiveFilter)
Set the receive filter of the system.
|
DOFSystem.Config.Builder |
setRemoteDomain(DOFSecurityScope remoteDomain)
Set the remote domain of the system.
|
DOFSystem.Config.Builder |
setSendFilter(DOFOperation.Filter sendFilter)
Set the send filter of the system.
|
DOFSystem.Config.Builder |
setTunnelDomains(boolean isTunnelDomains)
Set whether the system is allowed to see tunneled operations.
|
public Builder()
DOF.Config.Builder.setThreadPoolSize(short)
.public Builder(DOFSystem.Config config)
config
- The existing configuration. Must not be null.setName(String)
public Builder(DOFSystem.State state)
state
- The system state to use for builder initial state. Must not be null.setName(java.lang.String)
public DOFSystem.Config.Builder setName(java.lang.String name)
name
- The system name. null means you want the system named automatically (sys1, sys2, etc.)public DOFSystem.Config.Builder setCredentials(DOFCredentials credentials)
credentials
- The system's credentials. null
means non-secure.public DOFSystem.Config.Builder setSendFilter(DOFOperation.Filter sendFilter)
sendFilter
- The system's send filter. null
means none.public DOFSystem.Config.Builder setReceiveFilter(DOFOperation.Filter receiveFilter)
receiveFilter
- The system's receive filter. null
means none.public DOFSystem.Config.Builder setPermissions(DOFPermissionSet permissions)
permissions
- The initial permissions to use with the system. null
means none (default).public DOFSystem.Config.Builder setPermissionsExtendAllowed(boolean isExtendAllowed)
isExtendAllowed
- True if permissions are allowed to be extended. False otherwise.public DOFSystem.Config.Builder setTunnelDomains(boolean isTunnelDomains)
isTunnelDomains
- True if the system should see tunneled operations. The default is false.public DOFSystem.Config.Builder setRemoteDomain(DOFSecurityScope remoteDomain)
remoteDomain
- The security scope of an operation to provide into. This must be in a related domain to the
credentials of the system.public DOFSystem.Config build()