public class GadgetHandlers extends Object
This class provides access to GadgetModules. It also has a
nice JSON utility for converting JavaBean Objects (and primitives,
Collections, Maps, Strings, etc.) to JSON.
| Constructor and Description |
|---|
GadgetHandlers()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
getGadgetModule(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns a
GadgetModule for the named
gadget. |
static org.glassfish.admingui.connector.GadgetModule |
getGadgetModule(URL url)
This method returns a
GadgetModule for the given URL. |
static Object |
invokeHandler(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler will invoke another handler.
|
static Object |
parseString(String test) |
public static void getGadgetModule(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns a GadgetModule for the named
gadget. The name should either be a complete URL,
or a context-root relative path to the gadget XML file (this
also includes .xml files stored in .jar's / plugins).
public static org.glassfish.admingui.connector.GadgetModule getGadgetModule(URL url)
This method returns a GadgetModule for the given URL.
public static Object invokeHandler(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler will invoke another handler. This allows a generic handler to invoke another one and return the response(s), if any.
The following are the inputs are supported:
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.