Package alpine.server

Class AlpineServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.glassfish.jersey.servlet.ServletContainer
alpine.server.AlpineServlet
All Implemented Interfaces:
Serializable, javax.servlet.Filter, javax.servlet.Servlet, javax.servlet.ServletConfig, 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 interface org.glassfish.jersey.server.spi.Container

    DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Overrides the servlet destroy method and shuts down the servlet.
    void
    init(javax.servlet.ServletConfig config)
    Overrides the servlet init method and loads sets the InputStream necessary to load application.properties.

    Methods inherited from class org.glassfish.jersey.servlet.ServletContainer

    doFilter, doFilter, getApplicationHandler, getConfiguration, getServletContext, getStaticContentPattern, getWebComponent, init, init, init, reload, reload, service, service, service

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified

    Methods inherited from class javax.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AlpineServlet

      public AlpineServlet()
  • Method Details

    • init

      public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
      Overrides the servlet init method and loads sets the InputStream necessary to load application.properties.
      Specified by:
      init in interface javax.servlet.Servlet
      Overrides:
      init in class javax.servlet.GenericServlet
      Throws:
      javax.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:
      destroy in interface javax.servlet.Filter
      Specified by:
      destroy in interface javax.servlet.Servlet
      Overrides:
      destroy in class org.glassfish.jersey.servlet.ServletContainer