Class SecurePlugIn

    • Constructor Summary

      Constructors 
      Constructor Description
      SecurePlugIn()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addServletMapping​(java.lang.String servletName, java.lang.String urlPattern)
      Remember all servlet mapping from our web application deployment descriptor, if it is for the Struts ActionServlet.
      void destroy()
      Remove stuff from the ServletContext (application).
      java.lang.String getAddSession()  
      java.lang.String getEnable()  
      java.lang.String getHttpPort()  
      java.lang.String getHttpsPort()  
      java.util.Collection getServletMappings()  
      boolean getSslExtAddSession()  
      boolean getSslExtEnable()  
      void init​(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config)
      Initialize some instance variables and the ServletContext (application) to make this PlugIn's properties accessible from the whole app.
      protected void initMappings()
      Initialize the servlet mappings under which the Struts ActionServlet is accessed.
      protected void initResources()
      Initialize our internal MessageResources bundle.
      void setAddSession​(java.lang.String addSession)  
      void setEnable​(java.lang.String s)  
      void setHttpPort​(java.lang.String s)  
      void setHttpsPort​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • addSession

        protected java.lang.String addSession
      • httpPort

        protected java.lang.String httpPort
      • httpsPort

        protected java.lang.String httpsPort
      • enable

        protected java.lang.String enable
      • registrations

        protected java.lang.String[] registrations
        The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about. There MUST be an even number of Strings in this list!
      • resources

        protected org.apache.struts.util.MessageResources resources
        The resources object for our internal resources.
      • resourceName

        protected java.lang.String resourceName
        The Java base name of our internal resources.
        Since:
        Struts 1.1
    • Constructor Detail

      • SecurePlugIn

        public SecurePlugIn()
    • Method Detail

      • init

        public void init​(org.apache.struts.action.ActionServlet servlet,
                         org.apache.struts.config.ModuleConfig config)
                  throws javax.servlet.ServletException
        Initialize some instance variables and the ServletContext (application) to make this PlugIn's properties accessible from the whole app.
        Specified by:
        init in interface org.apache.struts.action.PlugIn
        Parameters:
        servlet - The Struts ActionServlet instance for the whole application
        config - The ModuleConfig for our owning module
        Throws:
        javax.servlet.ServletException - if we cannot configure ourselves correctly
      • destroy

        public void destroy()
        Remove stuff from the ServletContext (application).
        Specified by:
        destroy in interface org.apache.struts.action.PlugIn
      • setHttpsPort

        public void setHttpsPort​(java.lang.String s)
      • setHttpPort

        public void setHttpPort​(java.lang.String s)
      • setEnable

        public void setEnable​(java.lang.String s)
      • getAddSession

        public java.lang.String getAddSession()
      • setAddSession

        public void setAddSession​(java.lang.String addSession)
      • initMappings

        protected void initMappings()
                             throws javax.servlet.ServletException
        Initialize the servlet mappings under which the Struts ActionServlet is accessed. This will be used when searching for action mappings in the Struts configuration files when creating links, etc.
        Throws:
        javax.servlet.ServletException
      • initResources

        protected void initResources()
                              throws javax.servlet.ServletException
        Initialize our internal MessageResources bundle.
        Throws:
        javax.servlet.ServletException - if we cannot initialize these resources
      • addServletMapping

        public void addServletMapping​(java.lang.String servletName,
                                      java.lang.String urlPattern)
        Remember all servlet mapping from our web application deployment descriptor, if it is for the Struts ActionServlet.
        Parameters:
        servletName - The name of the servlet being mapped
        urlPattern - The URL pattern to which this servlet is mapped