@Path(value="serviceNetworks")
public class ServiceNetworkWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ServiceNetworkWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createServiceNetwork(InputStream input)
Creates a service network from the JSON input stream.
|
javax.ws.rs.core.Response |
deleteServiceNetwork(String id)
Removes the service network.
|
javax.ws.rs.core.Response |
getServiceNetwork(String id)
Returns the service network with the specified identifier.
|
javax.ws.rs.core.Response |
getServiceNetworks()
Returns all service networks.
|
javax.ws.rs.core.Response |
updateServiceNetwork(String id,
InputStream input)
Updates the service network with the specified identifier.
|
codec, encodeArray, getService, mapper, newArray, newObject@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createServiceNetwork(InputStream input)
input - service network JSON stream@PUT
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateServiceNetwork(@PathParam(value="id")
String id,
InputStream input)
id - network identifierinput - service network JSON stream@GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getServiceNetworks()
@GET
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response getServiceNetwork(@PathParam(value="id")
String id)
id - network identifier@DELETE
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deleteServiceNetwork(@PathParam(value="id")
String id)
id - network identifierCopyright © 2018. All rights reserved.