Class AbstractAnnotationsServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
    Direct Known Subclasses:
    AnnotationsServlet, JadiceSearchServlet

    public abstract class AbstractAnnotationsServlet
    extends javax.servlet.http.HttpServlet
    Abstract servlet containing common methods for annotation handling.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ANNOTATIONS_MAP
      Name of the attribute used to store annotations.
      static java.lang.String CANCEL_SAVE
      Attribute that signals a cancel operation.
      static java.lang.String FINAL_SAVE
      Attribute that signals the final save.
      static java.lang.String FORCED_SAVE
      Attribute that signals a forced save.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected DocumentService getDocService​(javax.servlet.http.HttpSession session)
      Gets the doc service.
      protected javax.servlet.http.Cookie getSessionCookie​(javax.servlet.http.HttpServletRequest request)
      Gets the session cookie.
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CANCEL_SAVE

        public static final java.lang.String CANCEL_SAVE
        Attribute that signals a cancel operation.
        See Also:
        Constant Field Values
      • FORCED_SAVE

        public static final java.lang.String FORCED_SAVE
        Attribute that signals a forced save.
        See Also:
        Constant Field Values
      • FINAL_SAVE

        public static final java.lang.String FINAL_SAVE
        Attribute that signals the final save.
        See Also:
        Constant Field Values
      • ANNOTATIONS_MAP

        public static final java.lang.String ANNOTATIONS_MAP
        Name of the attribute used to store annotations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractAnnotationsServlet

        public AbstractAnnotationsServlet()
    • Method Detail

      • getSessionCookie

        protected javax.servlet.http.Cookie getSessionCookie​(javax.servlet.http.HttpServletRequest request)
        Gets the session cookie.
        Parameters:
        request - the request
        Returns:
        the session cookie
      • getDocService

        protected DocumentService getDocService​(javax.servlet.http.HttpSession session)
        Gets the doc service.
        Parameters:
        session - the session
        Returns:
        the doc service