public class RestApiHandlers extends Object
Constructor and Description |
---|
RestApiHandlers() |
Modifier and Type | Method and Description |
---|---|
static void |
checkIfEndPointExist(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
createEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
REST-based version of createProxy
|
static void |
deleteCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
// TODO: just these resources?
deleteCascade handles delete for jdbc connection pool and connector connection pool
The dependent resources jdbc resource and connector resource are deleted on deleting
the pools
|
static void |
deleteConfigCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
encodeUrl(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
getChildList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
getChildrenNameFromListCmd(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
getChildrenNamesList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
getDefaultValues(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) |
static void |
getEntityAttrs(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
For the given REST endpoint, retrieve the values of the entity and
return those as a Map.
|
static void |
restRequest(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler can be used to execute a generic REST request.
|
static void |
updateEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Create or update
|
public static void getDefaultValues(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void getEntityAttrs(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
For the given REST endpoint, retrieve the values of the entity and return those as a Map. If the entity is not found, an Exception is thrown. This is the REST-based alternative to getProxyAttrs.
public static void checkIfEndPointExist(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void createEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
handlerCtx
- public static void restRequest(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler can be used to execute a generic REST request. It will return a Java data structure based on the response of the REST request. 'data' and 'attrs' are mutually exclusive. 'data' is used to pass RAW data to the endpoint (such as JSON).
public static void updateEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void deleteCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void deleteConfigCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void getChildList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void getChildrenNameFromListCmd(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void getChildrenNamesList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
public static void encodeUrl(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
Copyright © 2018. All rights reserved.