@Path(value="port_pairs")
public class PortPairWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
static String |
PORT_PAIR_ID_EXIST |
static String |
PORT_PAIR_ID_NOT_EXIST |
static String |
PORT_PAIR_NOT_FOUND |
| Constructor and Description |
|---|
PortPairWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createPortPair(InputStream stream)
Creates a new port pair.
|
javax.ws.rs.core.Response |
deletePortPair(String id)
Delete details of a specified port pair id.
|
javax.ws.rs.core.Response |
getPortPair(String id)
Get details of a specified port pair id.
|
javax.ws.rs.core.Response |
getPortPairs()
Get details of all port pairs created.
|
javax.ws.rs.core.Response |
updatePortPair(String id,
InputStream stream)
Update details of a specified port pair id.
|
codec, encodeArray, getService, mapper, newArray, newObjectget, ok, setServiceDirectorypublic static final String PORT_PAIR_NOT_FOUND
public static final String PORT_PAIR_ID_EXIST
public static final String PORT_PAIR_ID_NOT_EXIST
@GET @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response getPortPairs()
@GET
@Path(value="{pair_id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response getPortPair(@PathParam(value="pair_id")
String id)
id - port pair id@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createPortPair(InputStream stream)
stream - port pair from JSON@PUT
@Path(value="{pair_id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updatePortPair(@PathParam(value="pair_id")
String id,
InputStream stream)
id - port pair idstream - port pair from json@Path(value="{pair_id}")
@DELETE
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response deletePortPair(@PathParam(value="pair_id")
String id)
id - port pair id