Package com.hazelcast.config
Class RestApiConfig
java.lang.Object
com.hazelcast.config.RestApiConfig
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.5, use RestConfig instead. Will be removed at 6.0.
This class allows controlling which parts of Hazelcast REST API will be enabled. There are 2 levels of control:
- overall REST access (enabled by default);
- access to REST endpoint groups (see
RestEndpointGroup
).
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Disables all REST endpoint groups.disableGroups
(RestEndpointGroup... endpointGroups) Deprecated, for removal: This API element is subject to removal in a future version.Disables provided REST endpoint groups.Deprecated, for removal: This API element is subject to removal in a future version.Enables all REST endpoint groups.enableGroups
(RestEndpointGroup... endpointGroups) Deprecated, for removal: This API element is subject to removal in a future version.Enables provided REST endpoint groups.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns a not-null
set of enabled REST endpoint groups.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks if REST API access is enabled.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Return true if the REST API is enabled and at least one REST endpoint group is allowed.boolean
isGroupEnabled
(RestEndpointGroup group) Deprecated, for removal: This API element is subject to removal in a future version.Checks if given REST endpoint group is enabled.setEnabled
(boolean enabled) Deprecated, for removal: This API element is subject to removal in a future version.Enables or disables the REST API on the member.setEnabledGroups
(Collection<RestEndpointGroup> groups) Deprecated, for removal: This API element is subject to removal in a future version.toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
RestApiConfig
public RestApiConfig()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
enableAllGroups
Deprecated, for removal: This API element is subject to removal in a future version.Enables all REST endpoint groups. -
enableGroups
Deprecated, for removal: This API element is subject to removal in a future version.Enables provided REST endpoint groups. It doesn't replace already enabled groups. -
disableAllGroups
Deprecated, for removal: This API element is subject to removal in a future version.Disables all REST endpoint groups. -
disableGroups
Deprecated, for removal: This API element is subject to removal in a future version.Disables provided REST endpoint groups. -
isEnabled
public boolean isEnabled()Deprecated, for removal: This API element is subject to removal in a future version.Checks if REST API access is enabled. This flag controls access to all REST resources on a Hazelcast member. Once the REST API is enabled you can control access to REST endpoints by enabling/disabling endpoint groups.- Returns:
true
if enabled,false
otherwise
-
isEnabledAndNotEmpty
public boolean isEnabledAndNotEmpty()Deprecated, for removal: This API element is subject to removal in a future version.Return true if the REST API is enabled and at least one REST endpoint group is allowed. -
setEnabled
Deprecated, for removal: This API element is subject to removal in a future version.Enables or disables the REST API on the member. -
getEnabledGroups
Deprecated, for removal: This API element is subject to removal in a future version.Returns a not-null
set of enabled REST endpoint groups. -
isGroupEnabled
Deprecated, for removal: This API element is subject to removal in a future version.Checks if given REST endpoint group is enabled. It can returntrue
even if the REST API itself is disabled. -
setEnabledGroups
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
-