com.eteks.servlet
Class DefaultToolkitTest
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.eteks.servlet.DefaultToolkitTest
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class DefaultToolkitTest
- extends javax.servlet.http.HttpServlet
This servlet/program tests if graphics can work on a JVM or not, using default toolkit.
Servlet can be tested with the URL http://..../servlet/com.eteks.servlet.DefaultToolkitTest
or http://..../servlet/com.eteks.awt.servlet.PJARedirectServlet?destinationServletClass=com.eteks.servlet.DefaultToolkitTest.
Program can be tested with the command java com.eteks.servlet.DefaultToolkitTest
- Since:
- PJA2.1
- Version:
- 2.1
- Author:
- Emmanuel Puybaret
- See Also:
PJAToolkit
, Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static void |
main(java.lang.String[] args)
|
void |
test(java.io.PrintStream out)
Tries to instantiate default toolkit and Font class
and writes on out stream if it succeeded or failed.
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultToolkitTest
public DefaultToolkitTest()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
test
public void test(java.io.PrintStream out)
- Tries to instantiate default toolkit and
Font
class
and writes on out
stream if it succeeded or failed.
This ensures that AWT toolkit is enabled.
main
public static void main(java.lang.String[] args)