Class AbstractConfigurableRootResource<S extends ConfigurableService,W extends AbstractRootResourceConfigurableWebService<S>>
- java.lang.Object
-
- de.aristaflow.ilm.ws.rest.base.service.AbstractRootResource<S,W>
-
- de.aristaflow.ilm.ws.rest.base.service.AbstractConfigurableRootResource<S,W>
-
- Type Parameters:
S
- TheADEPT2Service
which is exported as REST web service.W
- TheAbstractRootResourceConfigurableWebService
which transforms between web service calls and the corresponding Java API.
- All Implemented Interfaces:
de.aristaflow.adept2.base.communication.rest.ServiceResource
- Direct Known Subclasses:
ExecutionManagerRest
@Produces("application/json") @Consumes("application/json") public abstract class AbstractConfigurableRootResource<S extends ConfigurableService,W extends AbstractRootResourceConfigurableWebService<S>> extends AbstractRootResource<S,W>
This class extends the REST root resource by the means for managing a configuration. Therefore it corresponds toAbstractRootResourceConfigurableWebService
.
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigurableRootResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getChangeableConfigurationKeys(javax.ws.rs.core.Application unused)
Map<String,String>
getConfiguration(javax.ws.rs.core.Application unused)
String
getConfigurationValue(@NotNull String key)
void
setConfigurationValue(@NotNull String key, @NotNull String value)
-
Methods inherited from class de.aristaflow.ilm.ws.rest.base.service.AbstractRootResource
adaptSessionTokenParam, createWebService, ensureReqMaxVersion, ensureReqMinVersion, ensureVersion, exportService, getExceptionHandler, getLogger, getObjectMapper, getRelease, getRequestHandler, getResponseHandler, getServiceInstanceName, getServiceResourceConfig, getUris, getVersion, getWebService, headerData, init, ping, registerSse, unregisterService, unregisterSse
-
-
-
-
Method Detail
-
getConfiguration
@GET @Path("/complete-configuration") public Map<String,String> getConfiguration(@Context javax.ws.rs.core.Application unused)
- Parameters:
unused
- This unused parameter just prevents Bean Validation from treating this method as simple getter and calling it arbitrarily even without request context.- See Also:
AbstractRootResourceConfigurableWebService.getConfiguration(de.aristaflow.ilm.base.sessionmanagement.SessionToken)
-
getConfigurationValue
@POST @Path("/configuration-value") @Consumes("application/x-www-form-urlencoded") public String getConfigurationValue(@NotNull @FormParam("key") @NotNull String key)
-
getChangeableConfigurationKeys
@GET @Path("/configuration") public List<String> getChangeableConfigurationKeys(@Context javax.ws.rs.core.Application unused)
- Parameters:
unused
- This unused parameter just prevents Bean Validation from treating this method as simple getter and calling it arbitrarily even without request context.- See Also:
AbstractRootResourceConfigurableWebService.getChangeableConfigurationKeys(de.aristaflow.ilm.base.sessionmanagement.SessionToken)
-
-