@Path(value="paths")
public class PathsWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
PathsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getDisjointPath(String src,
String dst)
Gets all shortest disjoint path pairs between any two hosts or devices.
|
javax.ws.rs.core.Response |
getPath(String src,
String dst)
Gets all shortest paths between any two hosts or devices.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET
@Produces(value="application/json")
@Path(value="{src}/{dst}")
public javax.ws.rs.core.Response getPath(@PathParam(value="src")
String src,
@PathParam(value="dst")
String dst)
src - source identifierdst - destination identifier@GET
@Produces(value="application/json")
@Path(value="{src}/{dst}/disjoint")
public javax.ws.rs.core.Response getDisjointPath(@PathParam(value="src")
String src,
@PathParam(value="dst")
String dst)
src - source identifierdst - destination identifier