Class RestApiHandlers

java.lang.Object
org.glassfish.admingui.common.handlers.RestApiHandlers

public class RestApiHandlers extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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
    createEntityResponseOutput(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?
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)