@Path(value="flowobjectives")
public class FlowObjectiveWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
FlowObjectiveWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createFilteringObjective(String appId,
String deviceId,
InputStream stream)
Creates and installs a new filtering objective for the specified device.
|
javax.ws.rs.core.Response |
createForwardingObjective(String appId,
String deviceId,
InputStream stream)
Creates and installs a new forwarding objective for the specified device.
|
javax.ws.rs.core.Response |
createNextObjective(String appId,
String deviceId,
InputStream stream)
Creates and installs a new next objective for the specified device.
|
javax.ws.rs.core.Response |
getNextId()
Returns the globally unique nextId.
|
javax.ws.rs.core.Response |
initPolicy(InputStream stream)
Installs the filtering rules onto the specified device.
|
codec, encodeArray, getService, mapper, newArray, newObject@POST
@Path(value="{deviceId}/filter")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createFilteringObjective(@QueryParam(value="appId")
String appId,
@PathParam(value="deviceId")
String deviceId,
InputStream stream)
appId - application identifierdeviceId - device identifierstream - filtering objective JSON@POST
@Path(value="{deviceId}/forward")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createForwardingObjective(@QueryParam(value="appId")
String appId,
@PathParam(value="deviceId")
String deviceId,
InputStream stream)
appId - application identifierdeviceId - device identifierstream - forwarding objective JSON@POST
@Path(value="{deviceId}/next")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createNextObjective(@QueryParam(value="appId")
String appId,
@PathParam(value="deviceId")
String deviceId,
InputStream stream)
appId - application identifierdeviceId - device identifierstream - next objective JSON@GET @Path(value="next") @Produces(value="application/json") public javax.ws.rs.core.Response getNextId()
@POST @Path(value="policy") @Consumes(value="application/json") public javax.ws.rs.core.Response initPolicy(InputStream stream)
stream - filtering rule JSON