|
Copyright 2002 by aragost | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.aragost.araspect.Inspector
| Field Summary | |
static java.lang.String |
ARG_ABOUT
Name of url argument to show about page |
static java.lang.String |
ARG_DEBUG
Name of url argument to go to debug mode |
static java.lang.String |
ARG_EXECUTE
Reqeust parameter name for property to execute |
static java.lang.String |
ARG_IS_ERROR_PAGE
Name of url argument work as JSP error page |
static java.lang.String |
ARG_NEWVALUE
Reqeust parameter name for the new value of the property updated |
static java.lang.String |
ARG_NULL
Reqeust parameter if present indicates that property should be set to null |
static java.lang.String |
ARG_PATH
Name of url argument specifying the path |
static java.lang.String |
ARG_SHOW_FULL_TO_STRING
Name of url argument to display full toString of object |
static java.lang.String |
ARG_UPDATE
Reqeust parameter name for property to update |
static java.lang.String |
EXCEPTION_KEY
Name of request attribute where a Throwable can be stored. |
| Constructor Summary | |
Inspector()
|
|
| Method Summary | |
void |
addError(java.lang.Exception e)
|
void |
addParameter(java.lang.String name,
java.lang.String value)
Add a parameter that will be added to all links, and as a hidden field on forms. |
protected Handler |
createHandlerForClassNamed(java.lang.String id)
Create a new handler instance with the specified id, and initialized with the given arguemnts. |
Link |
createLink(Element label,
Path path)
Create a URL link to the variable represented by the specified path. |
Link |
createLink(java.lang.String text,
Path path)
Create a URL link to the variable represented by the specified path. |
Element |
displayElement(Path path,
boolean showFullToString)
Return a html Element, corresponding to a String representation of the specified Object |
Element |
exceptionElement(java.lang.Exception e)
|
static Evaluator |
getEvaluator(java.lang.String id)
|
HandlerFacade |
getHandlerForClass(java.lang.Class clazz)
|
HandlerFacade |
getHandlerForPath(Path path)
|
static java.util.Map |
getHandlers()
|
java.lang.String |
getHeaderColor()
|
java.lang.String |
getInspectJsp()
Return the URI of the jsp that is used to launch araSpect. |
boolean |
getIsErrorPage()
|
static ExceptionInfo |
getJspException()
|
static Element |
getNullElement()
Return the html Element to respresent null |
java.util.Collection |
getParameters(Path path)
Return an Collection with all parameters needed in the request. |
Path |
getPath()
Getter for property path. |
java.lang.Object |
getRoot()
Getter for property root. |
InspectorSettings |
getSettings()
|
boolean |
getShowFullToString()
|
void |
htmlInspect(HtmlWriter out)
Write inspector output to the specified writer |
boolean |
isDebug()
Getter for property debug. |
boolean |
isDemo()
|
static void |
log(java.lang.String s)
|
java.lang.String |
prettyPrint(PathElement elm)
Pretty print the specified PathElement. |
static void |
process(javax.servlet.http.HttpServletRequest request,
java.lang.Object root,
java.io.Writer out)
|
static void |
process(javax.servlet.http.HttpServletRequest request,
java.lang.Throwable exception,
java.lang.Object root,
java.io.Writer out)
|
static void |
process(javax.servlet.jsp.PageContext pc,
java.lang.Object root)
|
void |
process(java.io.Writer writer)
|
static void |
registerArrayHandler(java.lang.Class handlerClass)
Register the handler for array objects |
static void |
registerHandler(java.lang.Class clazz,
java.lang.Class handlerClass)
Registre a handler class for a given object class |
static void |
registerHandler(java.lang.String className,
java.lang.String handlerClassName)
Register a handler class for a given object class. |
void |
remove(PathElement elm)
|
void |
remove(java.lang.String s)
|
void |
setDebug(boolean debug)
Setter for property debug. |
void |
setIsErrorPage(boolean flag)
|
static void |
setJspException(ExceptionInfo e)
|
void |
setPath(Path path)
Setter for property path. |
void |
setRoot(java.lang.Object root)
Setter for property root. |
void |
setShowFullToString(boolean sfts)
|
java.lang.String |
toString(java.lang.Object object)
|
java.lang.String |
typeName(java.lang.Object obj)
|
java.lang.String |
typeName(java.lang.Object obj,
java.lang.Class c)
Return the type as a String for the specified Class |
void |
update(PathElement elm,
java.lang.String newValue)
|
void |
update(java.lang.String key,
java.lang.String newValue)
|
void |
writeAbout(HtmlWriter out)
Write the about text to the specified writer |
void |
writeHeader(HtmlWriter out)
Write the header that is on all pages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EXCEPTION_KEY
public static final java.lang.String ARG_SHOW_FULL_TO_STRING
public static final java.lang.String ARG_IS_ERROR_PAGE
public static final java.lang.String ARG_PATH
public static final java.lang.String ARG_ABOUT
public static final java.lang.String ARG_DEBUG
public static final java.lang.String ARG_UPDATE
public static final java.lang.String ARG_EXECUTE
public static final java.lang.String ARG_NEWVALUE
public static final java.lang.String ARG_NULL
| Constructor Detail |
public Inspector()
| Method Detail |
public static void process(javax.servlet.http.HttpServletRequest request,
java.lang.Throwable exception,
java.lang.Object root,
java.io.Writer out)
public static void process(javax.servlet.jsp.PageContext pc,
java.lang.Object root)
public static void process(javax.servlet.http.HttpServletRequest request,
java.lang.Object root,
java.io.Writer out)
public static Element getNullElement()
null
public java.lang.String getHeaderColor()
public void remove(java.lang.String s)
public void remove(PathElement elm)
throws EvaluationException
EvaluationException
public void update(java.lang.String key,
java.lang.String newValue)
public void update(PathElement elm,
java.lang.String newValue)
throws EvaluationException
EvaluationExceptionpublic java.lang.String prettyPrint(PathElement elm)
public void addError(java.lang.Exception e)
public Element exceptionElement(java.lang.Exception e)
public Link createLink(java.lang.String text,
Path path)
text - The label of the linkpath - The path to create a link to
public Link createLink(Element label,
Path path)
label - The label as an html elementpath - The path to create a link to
public void addParameter(java.lang.String name,
java.lang.String value)
public java.util.Collection getParameters(Path path)
public void htmlInspect(HtmlWriter out)
public static void registerHandler(java.lang.Class clazz,
java.lang.Class handlerClass)
public static void registerHandler(java.lang.String className,
java.lang.String handlerClassName)
public static void registerArrayHandler(java.lang.Class handlerClass)
public java.lang.String typeName(java.lang.Object obj,
java.lang.Class c)
public java.lang.String typeName(java.lang.Object obj)
public Element displayElement(Path path,
boolean showFullToString)
path - The path to the specified objectshowFullToString - If true the length is not limitedpublic InspectorSettings getSettings()
public java.lang.String toString(java.lang.Object object)
public static void log(java.lang.String s)
public static java.util.Map getHandlers()
protected Handler createHandlerForClassNamed(java.lang.String id)
public static Evaluator getEvaluator(java.lang.String id)
public HandlerFacade getHandlerForPath(Path path)
public HandlerFacade getHandlerForClass(java.lang.Class clazz)
public java.lang.Object getRoot()
public void setRoot(java.lang.Object root)
root - New value of property root.public Path getPath()
public void setPath(Path path)
path - New value of property path.public void process(java.io.Writer writer)
public void writeHeader(HtmlWriter out)
public void writeAbout(HtmlWriter out)
public static ExceptionInfo getJspException()
public static void setJspException(ExceptionInfo e)
public boolean isDebug()
public boolean isDemo()
public void setDebug(boolean debug)
debug - New value of property debug.public boolean getIsErrorPage()
public void setIsErrorPage(boolean flag)
public boolean getShowFullToString()
public void setShowFullToString(boolean sfts)
public java.lang.String getInspectJsp()
|
Copyright 2002 by aragost | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||