Class BaseSmartHomeServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
    Direct Known Subclasses:
    SmartHomeBundleServlet, SmartHomeServlet

    public abstract class BaseSmartHomeServlet
    extends javax.servlet.http.HttpServlet
    Base class for HTTP servlets.
    Ɓukasz Dywicki - Initial contribution
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      protected org.osgi.service.http.HttpService httpService
      Http service.
      protected org.slf4j.Logger logger
      Logger bound to child class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate​(String alias, org.osgi.service.http.HttpContext httpContext)  
      protected void deactivate​(String alias)  
      protected void setHttpService​(org.osgi.service.http.HttpService httpService)  
      protected void unsetHttpService​(org.osgi.service.http.HttpService httpService)  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        Logger bound to child class.
      • httpService

        protected org.osgi.service.http.HttpService httpService
        Http service.
    • Constructor Detail

      • BaseSmartHomeServlet

        public BaseSmartHomeServlet()
    • Method Detail

      • setHttpService

        protected void setHttpService​(org.osgi.service.http.HttpService httpService)
      • unsetHttpService

        protected void unsetHttpService​(org.osgi.service.http.HttpService httpService)
      • activate

        protected void activate​(String alias,
                                org.osgi.service.http.HttpContext httpContext)
      • deactivate

        protected void deactivate​(String alias)