com.ora.jsp.beans.debug
Class DebugBean

java.lang.Object
  extended bycom.ora.jsp.beans.debug.DebugBean

public class DebugBean
extends java.lang.Object

This class is a bean that can be used to extract debug information from a JSP PageContext.

Version:
2.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  javax.servlet.ServletContext context
           
private  java.lang.String debugType
           
private  javax.servlet.jsp.PageContext pageContext
           
 
Constructor Summary
DebugBean()
           
 
Method Summary
 java.util.Map getApplicationScope()
          Returns a Map with all application scope variables.
 java.util.Map getCookies()
          Returns a Map with all cookie information.
 java.util.Map getHeaders()
          Returns a Map with all header information.
 java.util.Map getPageScope()
          Returns a Map with all page scope variables.
 java.util.Map getParams()
          Returns a Map with all request parameter information.
 java.util.Map getRequestInfo()
          Returns a Map with all basic request information.
 java.util.Map getRequestScope()
          Returns a Map with all request scope variables.
 java.util.Map getSessionScope()
          Returns a Map with all session scope variables.
private  java.lang.String nullToString(java.lang.String value)
          Returns the String "null" if the value is null, otherwise the value itself.
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
          Sets the pageContext property.
private  java.lang.String toStringValue(java.lang.Object value)
          Returns a String representation of the specified Object, in a format suitable for debug output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageContext

private javax.servlet.jsp.PageContext pageContext

debugType

private java.lang.String debugType

context

private javax.servlet.ServletContext context
Constructor Detail

DebugBean

public DebugBean()
Method Detail

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Sets the pageContext property.


getRequestInfo

public java.util.Map getRequestInfo()
Returns a Map with all basic request information.


getHeaders

public java.util.Map getHeaders()
Returns a Map with all header information.


getCookies

public java.util.Map getCookies()
Returns a Map with all cookie information.


getParams

public java.util.Map getParams()
Returns a Map with all request parameter information.


getRequestScope

public java.util.Map getRequestScope()
Returns a Map with all request scope variables.


getPageScope

public java.util.Map getPageScope()
Returns a Map with all page scope variables.


getSessionScope

public java.util.Map getSessionScope()
Returns a Map with all session scope variables.


getApplicationScope

public java.util.Map getApplicationScope()
Returns a Map with all application scope variables.


nullToString

private java.lang.String nullToString(java.lang.String value)
Returns the String "null" if the value is null, otherwise the value itself.


toStringValue

private java.lang.String toStringValue(java.lang.Object value)
Returns a String representation of the specified Object, in a format suitable for debug output.