Class PageTree

java.lang.Object
javax.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
org.apache.drill.yarn.appMaster.http.PageTree
All Implemented Interfaces:
javax.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>, javax.ws.rs.core.Configuration, org.glassfish.jersey.ExtendedConfig, org.glassfish.jersey.server.ServerConfig
Direct Known Subclasses:
AmRestApi, WebUiPageTree

public class PageTree extends org.glassfish.jersey.server.ResourceConfig
Base class for a tree of web pages (or REST resources) represented as POJOs. Since the AM web UI is simple, this is the most convenient, compact way to implement the UI.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PageTree(Dispatcher dispatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<String,Object>
    toMapModel(javax.ws.rs.core.SecurityContext sc, Map<String,Object> model)
     
    static Map<String,Object>
    toModel(javax.ws.rs.core.SecurityContext sc, Object base)
    Creates a FreeMarker model that contains two top-level items: the model itself (as in the default implementation) and the cluster name (used as a title on each UI page.)
    static Map<String,Object>
    toModel(javax.ws.rs.core.SecurityContext sc, Object base, javax.servlet.http.HttpServletRequest request)
     

    Methods inherited from class org.glassfish.jersey.server.ResourceConfig

    addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationName, getClasses, getClassLoader, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getResources, getRuntimeType, getSingletons, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, packages, packages, packages, property, register, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PageTree

      public PageTree(Dispatcher dispatcher)
  • Method Details

    • toModel

      public static Map<String,Object> toModel(javax.ws.rs.core.SecurityContext sc, Object base)
      Creates a FreeMarker model that contains two top-level items: the model itself (as in the default implementation) and the cluster name (used as a title on each UI page.)
      Parameters:
      base -
      Returns:
    • toModel

      public static Map<String,Object> toModel(javax.ws.rs.core.SecurityContext sc, Object base, javax.servlet.http.HttpServletRequest request)
    • toMapModel

      public static Map<String,Object> toMapModel(javax.ws.rs.core.SecurityContext sc, Map<String,Object> model)