com.croftsoft.core.servlet
Class HttpGatewayServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.croftsoft.core.servlet.HttpGatewayServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public abstract class HttpGatewayServlet
extends HttpServlet

Relays HTTP requests to a Server.

Since:
2003-05-13
Version:
$Id: HttpGatewayServlet.java,v 1.2 2006/11/28 01:31:07 croft Exp $
See Also:
Serialized Form
Author:
David Wallace Croft

Constructor Summary
  HttpGatewayServlet()
           
protected HttpGatewayServlet(Server server, Parser parser, Encoder encoder)
           
 
Method Summary
protected  byte[] encode(Object object)
           
protected  Object parse(InputStream inputStream, int contentLength)
           
protected  Object serve(Object request)
           
 void service(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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
 

Constructor Detail

HttpGatewayServlet

protected HttpGatewayServlet(Server server,
                             Parser parser,
                             Encoder encoder)

HttpGatewayServlet

public HttpGatewayServlet()
Method Detail

encode

protected byte[] encode(Object object)
                 throws IOException
Throws:
IOException

parse

protected Object parse(InputStream inputStream,
                       int contentLength)
                throws IOException
Throws:
IOException

serve

protected Object serve(Object request)

service

public final void service(HttpServletRequest httpServletRequest,
                          HttpServletResponse httpServletResponse)
                   throws IOException,
                          ServletException
Overrides:
service in class HttpServlet
Throws:
IOException
ServletException

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)