@Path(value="configuration")
public class ComponentConfigWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
ComponentConfigWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getComponentConfigs()
Gets all component configurations.
|
javax.ws.rs.core.Response |
getComponentConfigs(String component)
Gets configuration of the specified component.
|
javax.ws.rs.core.Response |
setConfigs(String component,
boolean preset,
InputStream request)
Selectively sets configuration properties.
|
javax.ws.rs.core.Response |
unsetConfigs(String component,
InputStream request)
Selectively clears configuration properties.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getComponentConfigs()
@GET
@Path(value="{component}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getComponentConfigs(@PathParam(value="component")
String component)
component - component name@POST
@Consumes(value="application/json")
@Path(value="{component}")
public javax.ws.rs.core.Response setConfigs(@PathParam(value="component")
String component,
@DefaultValue(value="false") @QueryParam(value="preset")
boolean preset,
InputStream request)
throws IOException
component - component namepreset - preset the property if truerequest - JSON configurationIOException - to signify bad request@DELETE
@Consumes(value="application/json")
@Path(value="{component}")
public javax.ws.rs.core.Response unsetConfigs(@PathParam(value="component")
String component,
InputStream request)
throws IOException
component - component namerequest - JSON configurationIOException - to signify bad request