@Path(value="groups")
public class GroupsWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
GroupsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addBucket(String deviceIdString,
String appCookieString,
InputStream stream)
Adds buckets to an existing group.
|
javax.ws.rs.core.Response |
createGroup(String deviceId,
InputStream stream)
Create new group rule.
|
javax.ws.rs.core.Response |
deleteBuckets(String deviceIdString,
String appCookieString,
String bucketIds)
Removes buckets from an existing group.
|
javax.ws.rs.core.Response |
deleteGroupByDeviceIdAndAppCookie(String deviceId,
String appCookie)
Removes the specified group.
|
javax.ws.rs.core.Response |
getGroupByDeviceIdAndAppCookie(String deviceId,
String appCookie)
Returns a group with the given deviceId and appCookie.
|
javax.ws.rs.core.Response |
getGroups()
Returns all groups of all devices.
|
javax.ws.rs.core.Response |
getGroupsByDeviceId(String deviceId)
Returns all groups associated with the given device.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getGroups()
@GET
@Produces(value="application/json")
@Path(value="{deviceId}")
public javax.ws.rs.core.Response getGroupsByDeviceId(@PathParam(value="deviceId")
String deviceId)
deviceId - device identifier@GET
@Produces(value="application/json")
@Path(value="{deviceId}/{appCookie}")
public javax.ws.rs.core.Response getGroupByDeviceIdAndAppCookie(@PathParam(value="deviceId")
String deviceId,
@PathParam(value="appCookie")
String appCookie)
deviceId - device identifierappCookie - group key@POST
@Path(value="{deviceId}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response createGroup(@PathParam(value="deviceId")
String deviceId,
InputStream stream)
deviceId - device identifierstream - group rule JSON@DELETE
@Path(value="{deviceId}/{appCookie}")
public javax.ws.rs.core.Response deleteGroupByDeviceIdAndAppCookie(@PathParam(value="deviceId")
String deviceId,
@PathParam(value="appCookie")
String appCookie)
deviceId - device identifierappCookie - application cookie to be used for lookup@POST
@Path(value="{deviceId}/{appCookie}/buckets")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response addBucket(@PathParam(value="deviceId")
String deviceIdString,
@PathParam(value="appCookie")
String appCookieString,
InputStream stream)
deviceIdString - device identifierappCookieString - application cookiestream - buckets JSON@DELETE
@Path(value="{deviceId}/{appCookie}/buckets/{bucketIds}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deleteBuckets(@PathParam(value="deviceId")
String deviceIdString,
@PathParam(value="appCookie")
String appCookieString,
@PathParam(value="bucketIds")
String bucketIds)
deviceIdString - device identifierappCookieString - application cookiebucketIds - comma separated list of identifiers of buckets to remove from this group