public abstract class RequesterService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
REQUESTER_LIST |
protected com.typesafe.config.Config |
sysConfig |
| Constructor and Description |
|---|
RequesterService(com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
static List<ServiceRequester> |
deserialize(String encodedString)
This implementation decode a given string encoded by
serialize(List). |
protected abstract List<ServiceRequester> |
findRequesters(com.linkedin.restli.server.resources.BaseResource resource) |
static String |
serialize(List<ServiceRequester> requesterList)
This implementation converts a given list to a json string.
|
protected com.typesafe.config.Config sysConfig
public static final String REQUESTER_LIST
public static String serialize(List<ServiceRequester> requesterList) throws IOException
This implementation converts a given list to a json string.
Due to json string may have reserved keyword that can confuse
Config, we first use Base64 to encode the json string,
then use URL encoding to remove characters like '+,/,='.
IOExceptionpublic static List<ServiceRequester> deserialize(String encodedString) throws IOException
This implementation decode a given string encoded by
serialize(List).
IOExceptionprotected abstract List<ServiceRequester> findRequesters(com.linkedin.restli.server.resources.BaseResource resource)