public abstract class AbstractServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected boolean |
isStopped |
protected String |
providerName |
protected AbstractServer |
server |
Constructor and Description |
---|
AbstractServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
abstract String |
getConfigurationId()
Get configuration id for this server.
|
abstract int |
getPortNumber(String configuredPortNumber)
Get port number for this server.
|
protected void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle commands PAUSE and RESUME and show status.
|
void |
init(javax.servlet.ServletConfig config) |
abstract AbstractServer |
newServer(javax.jdo.PersistenceManagerFactory pmf,
String providerName,
String bindAddress,
int portNumber,
String sslKeystoreFile,
String sslKeystoreType,
String sslKeystorePass,
String sslKeyPass,
String sslTruststoreFile,
String sslTruststorePass,
String sslTruststoreType,
Boolean sslNeedClientAuth,
boolean isDebug,
int delayOnStartup)
Create new server instance.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected String providerName
protected AbstractServer server
protected boolean isStopped
public abstract AbstractServer newServer(javax.jdo.PersistenceManagerFactory pmf, String providerName, String bindAddress, int portNumber, String sslKeystoreFile, String sslKeystoreType, String sslKeystorePass, String sslKeyPass, String sslTruststoreFile, String sslTruststorePass, String sslTruststoreType, Boolean sslNeedClientAuth, boolean isDebug, int delayOnStartup)
pmf
- providerName
- bindAddress
- portNumber
- sslKeystoreFile
- sslKeystoreType
- sslKeystorePass
- sslKeyPass
- sslTruststoreFile
- sslTruststorePass
- sslTruststoreType
- sslNeedClientAuth
- isDebug
- delayOnStartup
- public abstract String getConfigurationId()
public abstract int getPortNumber(String configuredPortNumber)
configuredPortNumber
- public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void handleRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
req
- res
- javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.