infosapient.util
Class SPServletUtils

java.lang.Object
  |
  +--infosapient.util.SPServletUtils

public class SPServletUtils
extends java.lang.Object

Assorted servlet utilities

Version:
$Revision: 1.1.1.1 $

Field Summary
private static boolean debug
           
private static boolean debugToConsole
           
private static java.util.Properties properties
           
 
Constructor Summary
SPServletUtils()
           
 
Method Summary
static java.lang.String generateJSList(infosapient.util.HttpServletRequest request, infosapient.util.HttpServletResponse zresponse, java.lang.String htmlDir)
          This method creates Java script code for displaying the kb in a tree format Creation date: (1/4/00 10:49:18 AM)
static java.lang.String getAttribute(infosapient.util.HttpServletRequest request, infosapient.util.HttpServletResponse response)
          This method creates the html form for editing a attribute Creation date: (1/4/00 3:47:00 PM)
static java.lang.String getKbForEdit(FzyKnowledgebase kb)
          Returns attributes about a knowledgebase in html table format.
static java.lang.String listGoalAttributes(infosapient.util.HttpServletRequest request, infosapient.util.HttpServletResponse response)
          Insert the method's description here.
static java.lang.StringBuffer listKB(infosapient.util.HttpServletRequest request, java.lang.String path)
          Return the list of available knowledge bases as an html option set Creation date: (12/13/1999 8:56:05 PM)
static java.lang.String listRules(infosapient.util.HttpServletRequest request, infosapient.util.HttpServletResponse response, java.lang.String htmlDir)
          Return the list of rules as an html table Creation date: (12/13/1999 8:56:05 PM)
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

properties

private static java.util.Properties properties

debug

private static boolean debug

debugToConsole

private static boolean debugToConsole
Constructor Detail

SPServletUtils

public SPServletUtils()
Method Detail

generateJSList

public static java.lang.String generateJSList(infosapient.util.HttpServletRequest request,
                                              infosapient.util.HttpServletResponse zresponse,
                                              java.lang.String htmlDir)
This method creates Java script code for displaying the kb in a tree format Creation date: (1/4/00 10:49:18 AM)
Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse
htmlDir - String - htmldir used

getAttribute

public static java.lang.String getAttribute(infosapient.util.HttpServletRequest request,
                                            infosapient.util.HttpServletResponse response)
This method creates the html form for editing a attribute Creation date: (1/4/00 3:47:00 PM)
Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse

getKbForEdit

public static java.lang.String getKbForEdit(FzyKnowledgebase kb)
Returns attributes about a knowledgebase in html table format. Expects that this will be called inside a form - no buttons. Creation date: (12/14/1999 10:09:02 AM)
Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse

listGoalAttributes

public static java.lang.String listGoalAttributes(infosapient.util.HttpServletRequest request,
                                                  infosapient.util.HttpServletResponse response)
Insert the method's description here. Creation date: (1/17/00 11:00:33 AM)
Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse

listKB

public static java.lang.StringBuffer listKB(infosapient.util.HttpServletRequest request,
                                            java.lang.String path)
Return the list of available knowledge bases as an html option set Creation date: (12/13/1999 8:56:05 PM)

listRules

public static java.lang.String listRules(infosapient.util.HttpServletRequest request,
                                         infosapient.util.HttpServletResponse response,
                                         java.lang.String htmlDir)
Return the list of rules as an html table Creation date: (12/13/1999 8:56:05 PM)

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved