Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.acme.gui.presObjs
Class HttpDebug  view HttpDebug download HttpDebug.java

java.lang.Object
  extended bycom.acme.gui.presObjs.HttpDebug

public class HttpDebug
extends java.lang.Object

This class is used for debugging. Now only used for httpPresentation tests.


Field Summary
private static java.lang.String[] httpRedirectHeader
           
private static java.lang.String[] httpRequestHeader
           
private static java.lang.String[] httpResponseHeader
           
private static int tableBorderWidth
           
private static int tablePercentWidth
           
 
Constructor Summary
private HttpDebug()
          Private constructor, prevent instantiation.
 
Method Summary
protected static void addCGIEnvironmentData(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request, com.lutris.html.HtmlTable tbl)
          This method adds rows to a table that contain the CGI environment data.
private static void addRequestCookies(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request, com.lutris.html.HtmlTable tbl)
          Adds request cookie setting to table.
private static void addRequestHeaders(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request, java.lang.String[] httpRequestHeader, com.lutris.html.HtmlTable tbl)
          Adds request headers data rows to a table.
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.
static java.lang.String getCGIEnvironmentTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
          Generates a table containing all CGI environment information.
private static java.lang.String getRequestCookieTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
          Generates a table containing http request cookie values.
private static java.lang.String getRequestHeaderTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
          Generates a table containing http request header values.
private static java.lang.String getRequestHeaderTable(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request, java.lang.String[] httpRequestHeader)
          Generates a table containing http request headers.
static java.lang.String getRequestTables(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest request)
          Generates tables containing request debug information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HttpDebug

private HttpDebug()
Private constructor, prevent instantiation.

Method Detail

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.