public class FloatingIpWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_FAIL |
static String |
DELETE_SUCCESS |
static String |
GET_FAIL |
static String |
JSON_NOT_NULL |
static String |
NOT_EXIST |
static String |
UPDATE_FAIL |
| Constructor and Description |
|---|
FloatingIpWebResource() |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.onosproject.vtnrsc.FloatingIp> |
changeJsonToSub(com.fasterxml.jackson.databind.JsonNode floatingIpNodes)
Returns a collection of floatingIps from floatingIpNodes.
|
javax.ws.rs.core.Response |
createFloatingIp(InputStream input) |
javax.ws.rs.core.Response |
deleteSingleFloatingIp(String id) |
javax.ws.rs.core.Response |
getFloatingIp(String id,
List<String> fields) |
javax.ws.rs.core.Response |
listFloatingIps() |
protected <T> T |
nullIsNotFound(T item,
String message)
Returns the specified item if that items is null; otherwise throws not
found exception.
|
javax.ws.rs.core.Response |
updateFloatingIp(String id,
InputStream input) |
public static final String CREATE_FAIL
public static final String UPDATE_FAIL
public static final String GET_FAIL
public static final String NOT_EXIST
public static final String DELETE_SUCCESS
public static final String JSON_NOT_NULL
public javax.ws.rs.core.Response listFloatingIps()
public javax.ws.rs.core.Response createFloatingIp(InputStream input)
public javax.ws.rs.core.Response updateFloatingIp(String id, InputStream input)
public javax.ws.rs.core.Response deleteSingleFloatingIp(String id) throws IOException
IOExceptionpublic Collection<org.onosproject.vtnrsc.FloatingIp> changeJsonToSub(com.fasterxml.jackson.databind.JsonNode floatingIpNodes) throws Exception
floatingIpNodes - the floatingIp json nodeException - when any argument is illegalprotected <T> T nullIsNotFound(T item,
String message)
T - item typeitem - item to checkmessage - not found messageorg.onlab.util.ItemNotFoundException - if item is nullCopyright © 2015. All rights reserved.