public class PortChainWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
static String |
PORT_CHAIN_ID_EXIST |
static String |
PORT_CHAIN_ID_NOT_EXIST |
static String |
PORT_CHAIN_NOT_FOUND |
| Constructor and Description |
|---|
PortChainWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createPortChain(InputStream stream)
Creates a new port chain.
|
void |
deletePortPain(String id)
Delete details of a specified port chain id.
|
javax.ws.rs.core.Response |
getPortChains()
Get details of all port chains created.
|
javax.ws.rs.core.Response |
getPortPain(String id)
Get details of a specified port chain id.
|
javax.ws.rs.core.Response |
updatePortPain(String id,
InputStream stream)
Update details of a specified port chain id.
|
public static final String PORT_CHAIN_NOT_FOUND
public static final String PORT_CHAIN_ID_EXIST
public static final String PORT_CHAIN_ID_NOT_EXIST
public javax.ws.rs.core.Response getPortChains()
public javax.ws.rs.core.Response getPortPain(String id)
id - port chain idpublic javax.ws.rs.core.Response createPortChain(InputStream stream)
stream - port chain from JSONpublic javax.ws.rs.core.Response updatePortPain(String id, InputStream stream)
id - port chain idstream - port chain jsonpublic void deletePortPain(String id)
id - port chain idCopyright © 2015. All rights reserved.