public interface RestServiceConfig extends Config
This is an optional configuration for a Web Server. If this configuration is configured, corresponding REST APIs will be exposed for users.
No values can be changed after the server has been started.
Modifier and Type | Interface and Description |
---|---|
static interface |
RestServiceConfig.RestApiConfig
REST API specific configuration.
|
static class |
RestServiceConfig.RestApiType
Supported REST API types.
|
Modifier and Type | Method and Description |
---|---|
RestServiceConfig.RestApiConfig |
addRestApiConfig(RestServiceConfig.RestApiType restApiType)
Creates and adds
RestServiceConfig.RestApiConfig of RestServiceConfig.RestApiType . |
RestServiceConfig.RestApiConfig |
getRestApiConfig(RestServiceConfig.RestApiType restApiType)
Returns
RestServiceConfig.RestApiConfig associated with supplied RestServiceConfig.RestApiType . |
long |
getSessionTokenTimeoutInMins()
Gets the timeout value, in minutes, for the REST session token, after it
is last accessed.
|
void |
removeRestApiConfig(RestServiceConfig.RestApiType restApiType)
Removes
RestServiceConfig.RestApiConfig of supplied type. |
void |
setSessionTokenTimeoutInMins(long sessionTokenTimeoutInMins)
Sets the session token time out value in minutes.
|
long getSessionTokenTimeoutInMins()
Session token is generated to be used to access REST APIs. If the session token is used after it times out, it will be invalidated and removed from the server.
If this is not specified, a default of 5 minutes is used.
void setSessionTokenTimeoutInMins(long sessionTokenTimeoutInMins) throws ConfigException
sessionTokenTimeoutInMins
- timeout value for session token, in
minutesConfigException
- if setting session token time out failsRestServiceConfig.RestApiConfig getRestApiConfig(RestServiceConfig.RestApiType restApiType)
RestServiceConfig.RestApiConfig
associated with supplied RestServiceConfig.RestApiType
.restApiType
- RestServiceConfig.RestApiType
to use to get RestServiceConfig.RestApiConfig
RestServiceConfig.RestApiConfig
with supplied RestServiceConfig.RestApiType
RestServiceConfig.RestApiConfig addRestApiConfig(RestServiceConfig.RestApiType restApiType) throws ConfigException
RestServiceConfig.RestApiConfig
of RestServiceConfig.RestApiType
.restApiType
- type of REST api config to add.RestServiceConfig.RestApiConfig
ConfigException
- if RestServiceConfig.RestApiConfig
of supplied type already
exists or creating the instance failsvoid removeRestApiConfig(RestServiceConfig.RestApiType restApiType) throws ConfigException
RestServiceConfig.RestApiConfig
of supplied type.restApiType
- type of REST API configuration to removeConfigException
- if removal of RestServiceConfig.RestApiConfig
failsCopyright © 2025 DiffusionData Ltd. All Rights Reserved.