@Path(value="rules")
public class AclWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
AclWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addAclRule(InputStream stream)
Add a new ACL rule.
|
javax.ws.rs.core.Response |
clearAcl()
Remove all ACL rules.
|
javax.ws.rs.core.Response |
queryAclRule()
Get all ACL rules.
|
javax.ws.rs.core.Response |
removeAclRule(String id)
Remove ACL rule.
|
codec, encodeArray, getService, mapper, newArray, newObjectget, ok, setServiceDirectory@GET public javax.ws.rs.core.Response queryAclRule()
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response addAclRule(InputStream stream) throws URISyntaxException
stream - JSON data describing the ruleURISyntaxException - uri syntax exception@DELETE
@Path(value="{id}")
public javax.ws.rs.core.Response removeAclRule(@PathParam(value="id")
String id)
id - ACL rule id (in hex string format)@DELETE public javax.ws.rs.core.Response clearAcl()