FileDocCategorySizeDatePackage
ConnectServlet.javaAPI DocGlassfish v2 API3164Fri May 04 22:34:08 BST 2007com.sun.enterprise.admin.server.core.servlet

ConnectServlet

public class ConnectServlet extends HttpServlet
A simple Servlet to test the connectivity of API layer.
author
Kedar Mhaswade
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

	    PrintWriter		out;
	    String		title = "Simple Servlet Output";

	    // set content type and other response header fields first
        response.setContentType("text/html");

	    // then write the data of the response
	    out = response.getWriter();

        out.println("<HTML><HEAD><TITLE>");
	    out.println(title);
	    out.println("</TITLE></HEAD><BODY>");
	    out.println("<H1>" + title + "</H1>");
	    out.println("<P> This means you are connected to the Admin API Servlet Layer.");
	    out.println("</BODY></HTML>");
	    out.close();
    
public voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

        doGet(request, response);