org.opencrx.application.adapter
Class AbstractServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
providerName
protected String providerName
server
protected AbstractServer server
isStopped
protected boolean isStopped
AbstractServlet
public AbstractServlet()
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.