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
-
Method Summary
Modifier and TypeMethodDescriptiontoMapModel
(javax.ws.rs.core.SecurityContext sc, Map<String, Object> model) 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.)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
-
Constructor Details
-
PageTree
-
-
Method Details
-
toModel
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
-
toMapModel
-