be.fedict.eid.applet.service
Class AbstractAppletServiceServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by be.fedict.eid.applet.service.AbstractAppletServiceServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
AppletServiceServlet

public abstract class AbstractAppletServiceServlet
extends HttpServlet

The eID applet service abstract Servlet. This abstract servlet is the basis for the classic Java EE 5 AppletServiceServlet, and the Java EE 6 CDI based version.

Author:
Frank Cornelis
See Also:
Serialized Form

Constructor Summary
AbstractAppletServiceServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
protected abstract
<T> MessageHandler<T>
getMessageHandler(Class<T> messageClass)
          This method needs to be implemented by servlets that extend this abstract base servlet.
 void init(ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAppletServiceServlet

public AbstractAppletServiceServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

getMessageHandler

protected abstract <T> MessageHandler<T> getMessageHandler(Class<T> messageClass)
This method needs to be implemented by servlets that extend this abstract base servlet.

Parameters:
messageClass -
Returns:

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2008-2014 FedICT. All Rights Reserved.