java.lang.Object
com.acme.gui.presObjs.HttpDebug
- public class HttpDebug
- extends java.lang.Object
This class is used for debugging. Now only used for httpPresentation
tests.
Constructor Summary |
private |
HttpDebug()
Private constructor, prevent instantiation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableBorderWidth
private static int tableBorderWidth
tablePercentWidth
private static int tablePercentWidth
httpRequestHeader
private static java.lang.String[] httpRequestHeader
httpResponseHeader
private static java.lang.String[] httpResponseHeader
httpRedirectHeader
private static java.lang.String[] httpRedirectHeader
HttpDebug
private HttpDebug()
- Private constructor, prevent instantiation.
displayComms
public static void displayComms(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
- Output an set of HTML table of a presentation object's arguments
and other state information.
getRequestTables
public static java.lang.String getRequestTables(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
throws java.lang.Exception
- Generates tables containing request debug information.
Debug information includes request headers and cookies.
getCGIEnvironmentTable
public static java.lang.String getCGIEnvironmentTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
throws java.lang.Exception
- Generates a table containing all CGI environment information.
The table is in html format.
addCGIEnvironmentData
protected static void addCGIEnvironmentData(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request,
com.lutris.html.HtmlTable tbl)
throws java.lang.Exception
- This method adds rows to a table that contain the
CGI environment data.
addRequestHeaders
private static void addRequestHeaders(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request,
java.lang.String[] httpRequestHeader,
com.lutris.html.HtmlTable tbl)
throws java.lang.Exception
- Adds request headers data rows to a table.
getRequestHeaderTable
private static java.lang.String getRequestHeaderTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request,
java.lang.String[] httpRequestHeader)
throws java.lang.Exception
- Generates a table containing http request headers.
Only headers that are set are displayed.
The table is in html format.
getRequestHeaderTable
private static java.lang.String getRequestHeaderTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
throws java.lang.Exception
- Generates a table containing http request header values.
The table is in html format. Only headers that have values
are displayed.
addRequestCookies
private static void addRequestCookies(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request,
com.lutris.html.HtmlTable tbl)
throws java.lang.Exception
- Adds request cookie setting to table.
The table is in html format.
getRequestCookieTable
private static java.lang.String getRequestCookieTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
throws java.lang.Exception
- Generates a table containing http request cookie values.
The table is in html format.