public final class DevToolkit extends Object
This component adds a "Developer Toolkit" to the UI.
This class is WComponent-like, but doesn't use any of the WComponent classes as we don't want it to get in the way when debugging in the LDE.
NOTE: The dev toolkit affects the entire VM, so no effort has been made to make it function correctly when there are multiple users accessing the LDE.
.| Modifier and Type | Class and Description |
|---|---|
static class |
DevToolkit.UITreeNode
Simple node extension for displaying the UI structure.
|
| Constructor and Description |
|---|
DevToolkit() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(String input)
XML-encodes the given input.
|
String[][] |
getConfig() |
String[][] |
getRequestHeaders()
Retrieves the headers for the last request.
|
String |
getRequestMethod()
Retrieves the HTTP method for the last request.
|
String[][] |
getRequestParameters()
Retrieves the parameters for the last request.
|
String |
getRootComponent() |
TreeNode |
getTree()
Retrieves a tree representation of the WComponent UI being served by the LDE, in a format suitable for rendering
to the UI.
|
String |
getUicStats()
Retrieves statistics on the active UIContext, in a format suitable for rendering to the UI.
|
boolean |
isDebugEnabled() |
static boolean |
isEnabled()
Determines whether the toolkit is enabled, based on the application Parameters.
|
boolean |
isShowConfig() |
boolean |
isShowIds() |
boolean |
isShowRequest() |
boolean |
isShowTree() |
boolean |
isShowUicStats() |
boolean |
isWhitespaceFilterEnabled() |
void |
paintFooter(PrintWriter writer)
Renders the DevToolkit content which must after before the main WComponent UI.
|
void |
paintHeader(PrintWriter writer)
Renders the DevToolkit content which must appear before the main WComponent UI.
|
protected void |
serviceRequest(javax.servlet.http.HttpServletRequest request)
Reads the state of the dev toolkit user interface.
|
public static boolean isEnabled()
protected void serviceRequest(javax.servlet.http.HttpServletRequest request)
Reads the state of the dev toolkit user interface.
The toolkit UI is implemented in a separate form with a hidden field to identify it, so any request to the main WComponent application being run in the LDE should skip this processing.
request - the current request being responded topublic String[][] getRequestHeaders()
public String getRequestMethod()
public String[][] getRequestParameters()
public TreeNode getTree()
public String getUicStats()
public boolean isShowTree()
public boolean isShowConfig()
public boolean isShowUicStats()
public boolean isShowRequest()
public boolean isWhitespaceFilterEnabled()
public boolean isShowIds()
public String getRootComponent()
public boolean isDebugEnabled()
public String[][] getConfig()
public String encode(String input)
input - the input to encode.public void paintHeader(PrintWriter writer)
writer - the writer to send the content to.public void paintFooter(PrintWriter writer)
writer - the writer to send the content to.Copyright © 2016. All rights reserved.