@Path(value="network/configuration")
public class NetworkConfigWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
NetworkConfigWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete()
Clear entire network configuration base.
|
javax.ws.rs.core.Response |
delete(String subjectClassKey)
Clear all network configurations for a subject class.
|
javax.ws.rs.core.Response |
delete(String subjectClassKey,
String subjectKey)
Clear all network configurations for a subjectKey.
|
javax.ws.rs.core.Response |
delete(String subjectClassKey,
String subjectKey,
String configKey)
Clear specific network configuration for a subjectKey.
|
javax.ws.rs.core.Response |
download()
Gets entire network configuration base.
|
javax.ws.rs.core.Response |
download(String subjectClassKey)
Gets all network configuration for a subject class.
|
javax.ws.rs.core.Response |
download(String subjectClassKey,
String subjectKey)
Gets all network configuration for a subjectKey.
|
javax.ws.rs.core.Response |
download(String subjectClassKey,
String subjectKey,
String configKey)
Gets specific network configuration for a subjectKey.
|
javax.ws.rs.core.Response |
upload(InputStream request)
Uploads bulk network configuration.
|
javax.ws.rs.core.Response |
upload(String subjectClassKey,
InputStream request)
Upload multiple network configurations for a subject class.
|
javax.ws.rs.core.Response |
upload(String subjectClassKey,
String subjectKey,
InputStream request)
Upload mutliple network configurations for a subjectKey.
|
javax.ws.rs.core.Response |
upload(String subjectClassKey,
String subjectKey,
String configKey,
InputStream request)
Upload specific network configuration for a subjectKey.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response download()
@GET
@Path(value="{subjectClassKey}")
@Produces(value="application/json")
public javax.ws.rs.core.Response download(@PathParam(value="subjectClassKey")
String subjectClassKey)
subjectClassKey - subject class key@GET
@Path(value="{subjectClassKey}/{subjectKey}")
@Produces(value="application/json")
public javax.ws.rs.core.Response download(@PathParam(value="subjectClassKey")
String subjectClassKey,
@PathParam(value="subjectKey")
String subjectKey)
subjectClassKey - subjectKey class keysubjectKey - subjectKey key@GET
@Path(value="{subjectClassKey}/{subjectKey}/{configKey}")
@Produces(value="application/json")
public javax.ws.rs.core.Response download(@PathParam(value="subjectClassKey")
String subjectClassKey,
@PathParam(value="subjectKey")
String subjectKey,
@PathParam(value="configKey")
String configKey)
subjectClassKey - subjectKey class keysubjectKey - subjectKey keyconfigKey - configuration class key@POST @Consumes(value="application/json") public javax.ws.rs.core.Response upload(InputStream request) throws IOException
request - network configuration JSON rooted at the top nodeIOException - if unable to parse the request@POST
@Path(value="{subjectClassKey}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response upload(@PathParam(value="subjectClassKey")
String subjectClassKey,
InputStream request)
throws IOException
subjectClassKey - subject class keyrequest - network configuration JSON rooted at the top nodeIOException - if unable to parse the request@POST
@Path(value="{subjectClassKey}/{subjectKey}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response upload(@PathParam(value="subjectClassKey")
String subjectClassKey,
@PathParam(value="subjectKey")
String subjectKey,
InputStream request)
throws IOException
subjectClassKey - subjectKey class keysubjectKey - subjectKey keyrequest - network configuration JSON rooted at the top nodeIOException - if unable to parse the request@POST
@Path(value="{subjectClassKey}/{subjectKey}/{configKey}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response upload(@PathParam(value="subjectClassKey")
String subjectClassKey,
@PathParam(value="subjectKey")
String subjectKey,
@PathParam(value="configKey")
String configKey,
InputStream request)
throws IOException
subjectClassKey - subjectKey class keysubjectKey - subjectKey keyconfigKey - configuration class keyrequest - network configuration JSON rooted at the top nodeIOException - if unable to parse the request@DELETE public javax.ws.rs.core.Response delete()
@DELETE
@Path(value="{subjectClassKey}")
public javax.ws.rs.core.Response delete(@PathParam(value="subjectClassKey")
String subjectClassKey)
subjectClassKey - subject class key@DELETE
@Path(value="{subjectClassKey}/{subjectKey}")
public javax.ws.rs.core.Response delete(@PathParam(value="subjectClassKey")
String subjectClassKey,
@PathParam(value="subjectKey")
String subjectKey)
subjectClassKey - subjectKey class keysubjectKey - subjectKey key@DELETE
@Path(value="{subjectClassKey}/{subjectKey}/{configKey}")
public javax.ws.rs.core.Response delete(@PathParam(value="subjectClassKey")
String subjectClassKey,
@PathParam(value="subjectKey")
String subjectKey,
@PathParam(value="configKey")
String configKey)
subjectClassKey - subjectKey class keysubjectKey - subjectKey keyconfigKey - configuration class key