public class RestApiConfig extends Object
RestEndpointGroup
).Constructor and Description |
---|
RestApiConfig() |
Modifier and Type | Method and Description |
---|---|
RestApiConfig |
disableAllGroups()
Disables all REST endpoint groups.
|
RestApiConfig |
disableGroups(RestEndpointGroup... endpointGroups)
Disables provided REST endpoint groups.
|
RestApiConfig |
enableAllGroups()
Enables all REST endpoint groups.
|
RestApiConfig |
enableGroups(RestEndpointGroup... endpointGroups)
Enables provided REST endpoint groups.
|
Set<RestEndpointGroup> |
getEnabledGroups()
Returns a not-
null set of enabled REST endpoint groups. |
boolean |
isEnabled()
Checks if REST API access is enabled.
|
boolean |
isEnabledAndNotEmpty()
Return true if the REST API is enabled and at least one REST endpoint group is allowed.
|
boolean |
isGroupEnabled(RestEndpointGroup group)
Checks if given REST endpoint group is enabled.
|
RestApiConfig |
setEnabled(boolean enabled)
Enables or disables the REST API on the member.
|
RestApiConfig |
setEnabledGroups(Collection<RestEndpointGroup> groups) |
String |
toString() |
public RestApiConfig enableAllGroups()
public RestApiConfig enableGroups(RestEndpointGroup... endpointGroups)
public RestApiConfig disableAllGroups()
public RestApiConfig disableGroups(RestEndpointGroup... endpointGroups)
public boolean isEnabled()
true
if enabled, false
otherwisepublic boolean isEnabledAndNotEmpty()
public RestApiConfig setEnabled(boolean enabled)
public Set<RestEndpointGroup> getEnabledGroups()
null
set of enabled REST endpoint groups.public boolean isGroupEnabled(RestEndpointGroup group)
true
even if the REST API itself is disabled.public RestApiConfig setEnabledGroups(Collection<RestEndpointGroup> groups)
Copyright © 2022 Hazelcast, Inc.. All rights reserved.