com.ibm.bdsl.web.editor

Class IntelliTextEditorServlet

  • java.lang.Object
    • javax.servlet.GenericServlet
      • javax.servlet.http.HttpServlet
        • com.ibm.bdsl.web.editor.IntelliTextEditorServlet
  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig


    public abstract class IntelliTextEditorServlet
    extends javax.servlet.http.HttpServlet
    Abstract Servlet to be overrided by web applications using the Web Intellitext Editor.
    The Servlet should be declared in the web application web.xml:
    
      <servlet>
          <servlet-name>MyIntelliTextEditorServlet</servlet-name>
          <servlet-class>com.mypackage.MyIntelliTextEditorServlet</servlet-class>
      </servlet>
      <servlet-mapping>
          <servlet-name>MyIntelliTextEditorServlet</servlet-name>
          <url-pattern>/intellitexteditor</url-pattern>
      </servlet-mapping>
     
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) 
      protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) 
      protected abstract IntelliTextEditorEnvironment getEnvironment(javax.servlet.http.HttpServletRequest request)
      Returns the Web Intellitext Editor environment to be used.
      void init() 
      protected boolean isAuthorizedPackage(java.lang.String resource) 
      • Methods inherited from class javax.servlet.http.HttpServlet

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

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

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

      • IntelliTextEditorServlet

        public IntelliTextEditorServlet()
    • Method Detail

      • getEnvironment

        protected abstract IntelliTextEditorEnvironment getEnvironment(javax.servlet.http.HttpServletRequest request)
        Returns the Web Intellitext Editor environment to be used. The environment can be generated for each HTTP request or cached.
        Parameters:
        request - the HTTP Servlet request
        Returns:
        the editor parsing environment
        See Also:
        IntelliTextEditorEnvironment
      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • doGet

        protected void doGet(javax.servlet.http.HttpServletRequest req,
                 javax.servlet.http.HttpServletResponse resp)
                      throws javax.servlet.ServletException,
                             java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • doPost

        protected void doPost(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
                       throws javax.servlet.ServletException,
                              java.io.IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • isAuthorizedPackage

        protected boolean isAuthorizedPackage(java.lang.String resource)

© Copyright IBM Corp. 1987, 2017