@Path(value="config") public final class ConfigurationRestResource extends AbstractRestResource<Configuration,GetConfigurationEvent>
gson, restObject| Constructor and Description |
|---|
ConfigurationRestResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAllowedRequests()
This method returns a string that offers a description of viable HTTP requests.
|
javax.ws.rs.core.Response |
getInfoText(javax.ws.rs.core.UriInfo uriInfo)
A HTTP GET request that returns a plain-text representation of the singleton object,
as well as some help text that shows which HTTP requests are possible.
|
javax.ws.rs.core.Response |
postConfiguration(String configJson)
Changes parameters of the configuration.
|
javax.ws.rs.core.Response |
putParameters(javax.ws.rs.core.MultivaluedMap<String,String> formParams)
Changes parameters of the configuration.
|
changeObject@PUT @Consumes(value="application/x-www-form-urlencoded") @Produces(value="text/plain") public javax.ws.rs.core.Response putParameters(javax.ws.rs.core.MultivaluedMap<String,String> formParams)
formParams - a key value map where the keys represent the parameter names and the values the new values@Path(value="_set") @POST @Consumes(value="application/json") @Produces(value="text/plain") public javax.ws.rs.core.Response postConfiguration(String configJson)
configJson - a key value map where the keys represent the parameter names and the values the new valuespublic javax.ws.rs.core.Response getInfoText(javax.ws.rs.core.UriInfo uriInfo)
AbstractRestResourcegetInfoText in class AbstractRestResource<Configuration,GetConfigurationEvent>uriInfo - an object that can be used to retrieve the path and possible query parameters.protected String getAllowedRequests()
AbstractRestResourcegetAllowedRequests in class AbstractRestResource<Configuration,GetConfigurationEvent>Copyright © 2017–2019. All rights reserved.