@Path(value="ports")
public class NeutronMl2PortsWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
NeutronMl2PortsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createPorts(InputStream input)
Creates a port from the JSON input stream.
|
javax.ws.rs.core.Response |
deletePorts(String id)
Removes the port with the given id.
|
javax.ws.rs.core.Response |
updatePort(String id,
InputStream input)
Updates the port with the specified identifier.
|
codec, encodeArray, getService, mapper, newArray, newObject@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createPorts(InputStream input)
input - port JSON input stream@PUT
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updatePort(@PathParam(value="id")
String id,
InputStream input)
id - port identifierinput - port JSON input stream@DELETE
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deletePorts(@PathParam(value="id")
String id)
id - port identifierCopyright © 2018. All rights reserved.