public class HttpPostCommandProcessor extends HttpCommandProcessor<HttpPostCommand>
Modifier and Type | Class and Description |
---|---|
protected static class |
HttpPostCommandProcessor.ResponseType |
LEGACY_URI_ADD_WAN_CONFIG, LEGACY_URI_MANCENTER_WAN_CLEAR_QUEUES, LEGACY_URI_WAN_SYNC_ALL_MAPS, LEGACY_URI_WAN_SYNC_MAP, URI_ADD_WAN_CONFIG, URI_CHANGE_CLUSTER_STATE_URL, URI_CLUSTER, URI_CLUSTER_MANAGEMENT_BASE_URL, URI_CLUSTER_NODES_URL, URI_CLUSTER_STATE_URL, URI_CLUSTER_VERSION_URL, URI_CP_GROUPS_URL, URI_CP_MEMBERS_URL, URI_CP_SESSIONS_SUFFIX, URI_CP_SUBSYSTEM_BASE_URL, URI_FORCESTART_CLUSTER_URL, URI_HEALTH_READY, URI_HEALTH_URL, URI_HOT_RESTART_BACKUP_CLUSTER_URL, URI_HOT_RESTART_BACKUP_INTERRUPT_CLUSTER_URL, URI_LICENSE_INFO, URI_LOCAL_CP_MEMBER_URL, URI_MANCENTER_BASE_URL, URI_MANCENTER_CHANGE_URL, URI_MANCENTER_WAN_CLEAR_QUEUES, URI_MAPS, URI_PARTIALSTART_CLUSTER_URL, URI_QUEUES, URI_REMOVE_SUFFIX, URI_RESTART_CP_SUBSYSTEM_URL, URI_SHUTDOWN_CLUSTER_URL, URI_SHUTDOWN_NODE_CLUSTER_URL, URI_UPDATE_PERMISSIONS, URI_WAN_CONSISTENCY_CHECK_MAP, URI_WAN_PAUSE_PUBLISHER, URI_WAN_RESUME_PUBLISHER, URI_WAN_STOP_PUBLISHER, URI_WAN_SYNC_ALL_MAPS, URI_WAN_SYNC_MAP
textCommandService
Constructor and Description |
---|
HttpPostCommandProcessor(TextCommandService textCommandService) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authenticate(HttpPostCommand command,
String groupName,
String pass)
Checks if the request is valid.
|
protected static String |
exceptionResponse(Throwable throwable) |
void |
handle(HttpPostCommand command) |
void |
handleRejection(HttpPostCommand command) |
protected static String |
response(HttpPostCommandProcessor.ResponseType type,
Object... attributes) |
protected String |
responseOnSetLicenseSuccess() |
protected void |
sendResponse(HttpPostCommand command,
String value) |
public HttpPostCommandProcessor(TextCommandService textCommandService)
public void handle(HttpPostCommand command)
protected static String response(HttpPostCommandProcessor.ResponseType type, Object... attributes)
protected boolean authenticate(HttpPostCommand command, String groupName, String pass) throws UnsupportedEncodingException
UnsupportedEncodingException
protected void sendResponse(HttpPostCommand command, String value)
public void handleRejection(HttpPostCommand command)
protected String responseOnSetLicenseSuccess()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.