@Path(value="port_chains")
public class PortChainWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
static String |
PORT_CHAIN_ID_EXIST |
static String |
PORT_CHAIN_ID_NOT_EXIST |
static String |
PORT_CHAIN_NOT_FOUND |
| Constructor and Description |
|---|
PortChainWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createPortChain(InputStream stream)
Creates a new port chain.
|
javax.ws.rs.core.Response |
deletePortPain(String id)
Delete details of a specified port chain id.
|
javax.ws.rs.core.Response |
getPortChains()
Get details of all port chains created.
|
javax.ws.rs.core.Response |
getPortPain(String id)
Get details of a specified port chain id.
|
javax.ws.rs.core.Response |
updatePortPain(String id,
InputStream stream)
Update details of a specified port chain id.
|
codec, encodeArray, getService, mapper, newArray, newObjectget, ok, setServiceDirectorypublic static final String PORT_CHAIN_NOT_FOUND
public static final String PORT_CHAIN_ID_EXIST
public static final String PORT_CHAIN_ID_NOT_EXIST
@GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getPortChains()
@GET
@Path(value="{chain_id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response getPortPain(@PathParam(value="chain_id")
String id)
id - port chain id@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createPortChain(InputStream stream)
stream - port chain from JSON@PUT
@Path(value="{chain_id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updatePortPain(@PathParam(value="chain_id")
String id,
InputStream stream)
id - port chain idstream - port chain json@Path(value="{chain_id}")
@DELETE
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response deletePortPain(@PathParam(value="chain_id")
String id)
id - port chain id