Class RestApiHandlers
java.lang.Object
org.glassfish.admingui.common.handlers.RestApiHandlers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckIfEndPointExist(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidcreateEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) REST-based version of createProxystatic voidcreateEntityResponseOutput(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) REST-based version of createProxystatic voiddeleteCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) // TODO: just these resources?static voiddeleteConfigCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidencodeUrl(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidgetChildList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidgetChildrenNameFromListCmd(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidgetChildrenNamesList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidgetDefaultValues(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) static voidgetEntityAttrs(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 voidrestRequest(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) This handler can be used to execute a generic REST request.static voidupdateEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) Create or update
-
Constructor Details
-
RestApiHandlers
public RestApiHandlers()
-
-
Method Details
-
getDefaultValues
public static void getDefaultValues(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) -
getEntityAttrs
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.
-
checkIfEndPointExist
public static void checkIfEndPointExist(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) -
createEntity
public static void createEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) REST-based version of createProxy- Parameters:
handlerCtx-
-
createEntityResponseOutput
public static void createEntityResponseOutput(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) REST-based version of createProxy- Parameters:
handlerCtx-
-
restRequest
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).
-
updateEntity
public static void updateEntity(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) Create or update -
deleteCascade
public 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 -
deleteConfigCascade
public static void deleteConfigCascade(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) -
getChildList
public static void getChildList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) -
getChildrenNameFromListCmd
public static void getChildrenNameFromListCmd(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) -
getChildrenNamesList
public static void getChildrenNamesList(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) -
encodeUrl
public static void encodeUrl(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
-