Package com.sun.ts.tests.common.web
Class WebUtil
java.lang.Object
com.sun.ts.tests.common.web.WebUtil
Factorize code used by JSP and Servlets.
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PropertiesexecuteTest(Object testDriver, jakarta.servlet.http.HttpServletRequest req) Use information provided in a HTTPRequest to execute a test method on a testDriver object.static voidstatic voidstatic voidstatic voidstatic StringpropsToString(Properties props) Convert Java Properties to a String, as expected by on the client side (WebServer)
- 
Field Details- 
RESULT_PROPName of property used to send back test result to client- See Also:
 
- 
TEST_NAME_PROPName of the property used to get the test method name- See Also:
 
 
- 
- 
Constructor Details- 
WebUtilpublic WebUtil()
 
- 
- 
Method Details- 
logMsg
- 
logTrace
- 
logErr
- 
logErr
- 
executeTestpublic static Properties executeTest(Object testDriver, jakarta.servlet.http.HttpServletRequest req) throws jakarta.servlet.ServletException Use information provided in a HTTPRequest to execute a test method on a testDriver object. The test method is "discovered" at runtime using the reflection API. The testDriver could be any java object.- Throws:
- jakarta.servlet.ServletException
 
- 
propsToStringConvert Java Properties to a String, as expected by on the client side (WebServer)
 
-