
public class HeadlessUI extends DevModeUI
| Constructor and Description |
|---|
HeadlessUI(DevModeBase.HostedModeBaseOptions options) |
| Modifier and Type | Method and Description |
|---|---|
ModuleHandle |
getModuleLogger(String userAgent,
String remoteSocket,
String url,
String tabKey,
String moduleName,
String sessionKey,
String agentTag,
byte[] agentIcon,
TreeLogger.Type logLevel)
Show that a module is loaded in the UI.
|
TreeLogger |
getWebServerLogger(String serverName,
byte[] serverIcon)
Create the web server portion of the UI if not already created, and
return its TreeLogger instance.
|
getCallback, getConsoleLogger, getLogLevel, getTopLogger, hasCallback, initialize, moduleLoadComplete, setCallback, setStartupUrls, setWebServerSecurepublic HeadlessUI(DevModeBase.HostedModeBaseOptions options)
options - unusedpublic TreeLogger getWebServerLogger(String serverName, byte[] serverIcon)
DevModeUINote that the RestartServerEvent should already have a callback
registered when this is called -- the UI is not required to change the
UI if it is registered later.
getWebServerLogger in class DevModeUIserverName - short name of the web server or null if only the icon
should be usedserverIcon - byte array containing an icon (fitting into 24x24) to
use for the server, or null if only the name should be usedpublic ModuleHandle getModuleLogger(String userAgent, String remoteSocket, String url, String tabKey, String moduleName, String sessionKey, String agentTag, byte[] agentIcon, TreeLogger.Type logLevel)
DevModeUINote that the CloseModuleEvent should already have a callback
registered when this is called if needed -- the UI is not required to
change the UI if it is registered later.
getModuleLogger in class DevModeUIuserAgent - full user agent nameremoteSocket - name of remote socket endpoint in host:port formaturl - URL of top-level windowtabKey - stable browser tab identifier, or the empty string if no
such identifier is availablemoduleName - the name of the module loadedsessionKey - a unique session keyagentTag - short-form user agent identifier, suitable for use in
a label for this connectionagentIcon - icon to use for the user agent (fits inside 24x24) or
null if unavailablelogLevel - logging detail requestedCopyright © 2018. All rights reserved.