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