org.opencrx.application.adapter
Class AbstractServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opencrx.application.adapter.AbstractServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
IMAPServlet, LDAPServlet

public abstract class AbstractServlet
extends HttpServlet

See Also:
Serialized Form

Field Summary
protected  boolean isStopped
           
protected  String providerName
           
protected  AbstractServer server
           
 
Constructor Summary
AbstractServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse res)
           
protected  void doPost(HttpServletRequest req, HttpServletResponse res)
           
abstract  String getConfigurationId()
           
abstract  int getPortNumber(String configuredPortNumber)
           
protected  void handleRequest(HttpServletRequest req, HttpServletResponse res)
           
 void init(ServletConfig config)
           
abstract  AbstractServer newServer(javax.jdo.PersistenceManagerFactory pmf, String providerName, String bindAddress, int portNumber, String sslKeystoreFile, String sslKeystoreType, String sslKeystorePass, String sslKeyPass, boolean isDebug, int delayOnStartup)
           
 
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
 

Field Detail

providerName

protected String providerName

server

protected AbstractServer server

isStopped

protected boolean isStopped
Constructor Detail

AbstractServlet

public AbstractServlet()
Method Detail

newServer

public abstract AbstractServer newServer(javax.jdo.PersistenceManagerFactory pmf,
                                         String providerName,
                                         String bindAddress,
                                         int portNumber,
                                         String sslKeystoreFile,
                                         String sslKeystoreType,
                                         String sslKeystorePass,
                                         String sslKeyPass,
                                         boolean isDebug,
                                         int delayOnStartup)

getConfigurationId

public abstract String getConfigurationId()

getPortNumber

public abstract int getPortNumber(String configuredPortNumber)

init

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

handleRequest

protected void handleRequest(HttpServletRequest req,
                             HttpServletResponse res)
                      throws ServletException,
                             IOException
Throws:
ServletException
IOException

doGet

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

doPost

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


This software is published under the BSD license. Copyright © 2003-2012, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.