com.croftsoft.core.servlet
Class HttpGatewayServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
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 |
HttpGatewayServlet
protected HttpGatewayServlet(Server server,
Parser parser,
Encoder encoder)
HttpGatewayServlet
public HttpGatewayServlet()
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 Core Javadoc (2008-09-28 20:58:02)