@Path(value="/config") public class ConfigResource extends RestResource
API_KEY_CLIENT_ID, API_KEY_TOKEN, API_KEY_USER, apiClientId, apiToken, apiUser, AUTHENTICATION_PARAM_NAME, hmacHeader, querySessionId, REMOTE_USER_ID, REMOTE_USER_TOKEN, remoteUserId, remoteUserToken, request, sessionId, WOR_PARTNER_TOKEN, worPartnerToken
Constructor and Description |
---|
ConfigResource() |
Modifier and Type | Method and Description |
---|---|
ArrayList<Setting> |
get()
Retrieves list of system settings available
|
javax.ws.rs.core.Response |
getConfig(String key)
Retrieves the value for the specified config key
|
javax.ws.rs.core.Response |
getSiteSettings() |
Setting |
getVersion(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
update(Setting setting) |
javax.ws.rs.core.Response |
updateConfigValue(Setting setting) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@GET @Produces(value="application/json") public ArrayList<Setting> get()
@GET @Path(value="/site") @Produces(value="application/json") public javax.ws.rs.core.Response getSiteSettings()
@GET @Path(value="/version") @Produces(value="application/json") public Setting getVersion(@Context javax.ws.rs.core.UriInfo uriInfo)
@GET @Path(value="/{key}") @Produces(value="application/json") public javax.ws.rs.core.Response getConfig(@PathParam(value="key") String key)
key
- config key@PUT @Produces(value="application/json") public javax.ws.rs.core.Response update(Setting setting)
setting
- a config value to update@PUT @Path(value="/value") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateConfigValue(Setting setting)
Copyright © 2017. All rights reserved.