public final class TeamConfigJsonConverter extends Object
TeamConfig to JSON format.| Modifier and Type | Method and Description |
|---|---|
static Pair<TeamConfig<SystemConfigReq>,Boolean> |
decodeReq(String json)
Decodes a team configuration request from JSON format.
|
static TeamConfig<SystemConfigRsp> |
decodeRsp(String json)
Decodes a team configuration response from JSON format.
|
static String |
encodeReq(TeamConfig<SystemConfigReq> team)
Converts a team configuration request to a JSON format.
|
static String |
encodeReq(TeamConfig<SystemConfigReq> team,
boolean forwardRequest)
Converts a team configuration request to a JSON format.
|
static String |
encodeRsp(TeamConfig<SystemConfigRsp> team)
Converts a team status response to a JSON format.
|
static String |
encodeTeamActionStatus(List<TeamActionStatus<Boolean>> teamActionStatusList)
Converts
TeamActionStatus to JSON format. |
public static String encodeReq(TeamConfig<SystemConfigReq> team)
team - team configuration to convert.public static String encodeReq(TeamConfig<SystemConfigReq> team, boolean forwardRequest)
team - team configuration to convert.forwardRequest - specifies whether the request must be propagated
across all the members of the team.public static String encodeRsp(TeamConfig<SystemConfigRsp> team)
team - team configuration to convert.public static String encodeTeamActionStatus(List<TeamActionStatus<Boolean>> teamActionStatusList)
TeamActionStatus to JSON format.teamActionStatusList - TeamActionStatus listTeamActionStatus as JSONpublic static Pair<TeamConfig<SystemConfigReq>,Boolean> decodeReq(String json) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
json - team configuration as JSON format.com.fasterxml.jackson.core.JsonProcessingException - if errors processing the JSON input.IOException - if errors reading the JSON input.public static TeamConfig<SystemConfigRsp> decodeRsp(String json) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
json - team configuration as JSON format.com.fasterxml.jackson.core.JsonProcessingException - if errors processing the JSON input.IOException - if errors reading the JSON input.Copyright © 2014. All Rights Reserved.