Enhydra 5.1 API

com.lutris.http.debug
Class HttpDebug

java.lang.Object
  |
  +--com.lutris.http.debug.HttpDebug

public class HttpDebug
extends java.lang.Object

This class is used for debugging. It generates html formatted output. It can be used to display http request, http response information. The interfaces DebugRequest and DebugResponse are used to define how this debugging class interacts with the various type of request and response classes including: HttpServletRequest, HttpServletResponse, HttpPresentationRequest, HttpPresentationResponse, HttpRequest, HttpResponse, etc.

Since:
LBS1.7
Version:
$Revision: 1.1 $
Author:
Paul Morgan

Constructor Summary
HttpDebug()
           
 
Method Summary
static java.lang.String formatSessionInfo(java.lang.String info, java.lang.String title)
           
static java.lang.String formatTraceDebugInfo(java.lang.String trace)
          Adds a dump of the response object trace.
static java.lang.String getRequestDebugInfo(DebugRequest request)
          Returns HTML containing all the useful information in a HTTP Request.
static java.lang.String getResponseDebugInfo(DebugResponse response)
          Returns HTML containing all the useful information in a HTTP Response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpDebug

public HttpDebug()
Method Detail

getRequestDebugInfo

public static java.lang.String getRequestDebugInfo(DebugRequest request)
                                            throws java.lang.Exception
Returns HTML containing all the useful information in a HTTP Request.

Parameters:
request - The request object to be dumped.
Returns:
The composed HTML table.
Throws:
java.lang.Exception - from underlying implementation of request object.

getResponseDebugInfo

public static java.lang.String getResponseDebugInfo(DebugResponse response)
                                             throws java.lang.Exception
Returns HTML containing all the useful information in a HTTP Response.

Parameters:
response - The response object to be dumped.
Returns:
The composed HTML table.
Throws:
java.lang.Exception - from underlying implementation of response object.

formatTraceDebugInfo

public static java.lang.String formatTraceDebugInfo(java.lang.String trace)
Adds a dump of the response object trace.

Parameters:
trace - The string to be formatted.
Returns:
The formatted HTML.

formatSessionInfo

public static java.lang.String formatSessionInfo(java.lang.String info,
                                                 java.lang.String title)

Enhydra 5.1 API