| Package | Description |
|---|---|
| sila_java.library.server_base |
| Modifier and Type | Method and Description |
|---|---|
SiLAServer.Builder |
SiLAServer.Builder.addFCPAffectedByMetadata(@NonNull String FCPAffectedByMetadata,
String... FQIMetadata)
Very early stage API to specify FCP Affected by Metadata will most likely be changed in the future
|
SiLAServer.Builder |
SiLAServer.Builder.addFeature(@NonNull FeatureImplementation featureImplementation)
Add a Feature to be exposed
|
SiLAServer.Builder |
SiLAServer.Builder.addFeature(@NonNull String featureDescription,
@NonNull BindableService featureService)
Add a Feature to be exposed
|
SiLAServer.Builder |
SiLAServer.Builder.addFeature(@NonNull String featureDescription,
@NonNull ServerServiceDefinition serverServiceFeatureDefinition)
Add a Feature to be exposed
|
SiLAServer.Builder |
SiLAServer.Builder.addInterceptor(@NonNull ServerInterceptor interceptor)
Add a gRPC
ServerInterceptor to the server |
static SiLAServer.Builder |
SiLAServer.Builder.newBuilder(@NonNull ServerInformation serverInformation)
Create builder for a Server
|
SiLAServer.Builder |
SiLAServer.Builder.removeFCPAffectedByMetadata(@NonNull String FCPAffectedByMetadata,
String... FQIMetadata)
Very early stage API to remove FCP Affected by Metadata will most likely be changed in the future
|
SiLAServer.Builder |
SiLAServer.Builder.withBinaryDatabaseInjector()
Add a
BinaryDatabaseInjector to the server so the BinaryDatabase is easily accessible to
feature implementations |
SiLAServer.Builder |
SiLAServer.Builder.withBinaryTransferSupport()
Enable support for binary transfer
|
SiLAServer.Builder |
SiLAServer.Builder.withBinaryTransferSupport(boolean binaryTransferSupport)
Enable or disable support for binary transfer
|
SiLAServer.Builder |
SiLAServer.Builder.withCustomBinaryDatabaseProvider(SiLAServer.Builder.BinaryDatabaseProvider customBinaryDatabaseProvider)
Allows to set a custom binary database instead of the default one.
|
SiLAServer.Builder |
SiLAServer.Builder.withCustomConfigWrapperProvider(SiLAServer.Builder.ConfigWrapperProvider customConfigWrapperProvider)
Allows to set a custom configuration wrapper instead of the default one
|
SiLAServer.Builder |
SiLAServer.Builder.withDefaultServerConfiguration(ServerConfiguration defaultServerConfiguration)
Define the default server configuration.
|
SiLAServer.Builder |
SiLAServer.Builder.withDiscovery(@NonNull boolean isEnabled)
Enables or disables Network Discovery
|
SiLAServer.Builder |
SiLAServer.Builder.withHost(String host)
Define the host or IP address on which the services will be exclusively served on.
|
SiLAServer.Builder |
SiLAServer.Builder.withMetadataExtractingInterceptor()
Add a
MetadataExtractingInterceptor to the server |
SiLAServer.Builder |
SiLAServer.Builder.withName(String name)
Define the server name.
|
SiLAServer.Builder |
SiLAServer.Builder.withNetworkInterface(@NonNull String interfaceName)
Enables Discovery on a certain interface
|
SiLAServer.Builder |
SiLAServer.Builder.withoutDiscovery()
Disables Network Discovery
|
SiLAServer.Builder |
SiLAServer.Builder.withPersistentConfig()
Allows to specify whether the server configuration should be persisted.
|
SiLAServer.Builder |
SiLAServer.Builder.withPersistentConfig(boolean usePersistentConfig)
Allows to specify whether the server configuration should be persisted.
|
SiLAServer.Builder |
SiLAServer.Builder.withPersistentConfigFile(Path persistentConfigFile)
Allows to specify the file to save and or load the server configuration
|
SiLAServer.Builder |
SiLAServer.Builder.withPersistentTLS(@NonNull Path privateKeyFile,
@NonNull Path certificateFile)
Use persistent TLS credentials.
|
SiLAServer.Builder |
SiLAServer.Builder.withPersistentTLS(@NonNull Path privateKeyFile,
@NonNull Path certificateFile,
String certificatePassword)
Use persistent TLS credentials.
|
SiLAServer.Builder |
SiLAServer.Builder.withPort(int port)
Define Specific Port for the services (otherwise a default range will be chosen)
|
SiLAServer.Builder |
SiLAServer.Builder.withTLS(@NonNull X509Certificate certChain,
@NonNull PrivateKey privateKey)
Use TLS certification
|
SiLAServer.Builder |
SiLAServer.Builder.withUnsafeCommunication(boolean unsafeCommunication)
Deprecated.
Unsafe plain-text communication is forbidden by the SiLA 2 Standard
|
SiLAServer.Builder |
SiLAServer.Builder.withUUID(UUID uuid)
Define the server UUID.
|
Copyright © 2022 SiLA Java Developers. All rights reserved.