Package alpine.server
Class AlpineServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.glassfish.jersey.servlet.ServletContainer
alpine.server.AlpineServlet
- All Implemented Interfaces:
jakarta.servlet.Filter,jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,org.glassfish.jersey.server.spi.Container
public class AlpineServlet
extends org.glassfish.jersey.servlet.ServletContainer
The AlpineServlet is the main servlet which extends
the Jersey ServletContainer. It is responsible for setting up
the runtime environment by initializing the application,
and setting the path to properties files used for
Config(uration).- Since:
- 1.0.0
- Author:
- Steve Springett
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEADFields inherited from interface org.glassfish.jersey.server.spi.Container
DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.glassfish.jersey.servlet.ServletContainer
doFilter, doFilter, getApplicationHandler, getConfiguration, getServletContext, getStaticContentPattern, getWebComponent, init, init, init, reload, reload, service, service, serviceMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeaderMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, log, log
-
Constructor Details
-
AlpineServlet
public AlpineServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException Overrides the servlet init method and loads sets the InputStream necessary to load application.properties.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException- a general error that occurs during initialization
-
destroy
public void destroy()Overrides the servlet destroy method and shuts down the servlet.- Specified by:
destroyin interfacejakarta.servlet.Filter- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classorg.glassfish.jersey.servlet.ServletContainer
-