java.lang.Object
com.echothree.view.client.web.struts.sslext.action.SecurePlugIn
All Implemented Interfaces:
SecurePlugInInterface, org.apache.struts.action.PlugIn

public class SecurePlugIn extends Object implements SecurePlugInInterface
Implements sslext plugin functionality
  • Field Details

    • addSession

      protected String addSession
    • httpPort

      protected String httpPort
    • httpsPort

      protected String httpsPort
    • enable

      protected String enable
    • registrations

      protected 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 String resourceName
      The Java base name of our internal resources.
      Since:
      Struts 1.1
  • Constructor Details

  • Method Details

    • 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 ApplicationConfig for our owning sub-application
      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(String s)
    • setHttpPort

      public void setHttpPort(String s)
    • getHttpsPort

      public String getHttpsPort()
      Specified by:
      getHttpsPort in interface SecurePlugInInterface
    • getHttpPort

      public String getHttpPort()
      Specified by:
      getHttpPort in interface SecurePlugInInterface
    • getServletMappings

      Specified by:
      getServletMappings in interface SecurePlugInInterface
    • getEnable

      public String getEnable()
      Specified by:
      getEnable in interface SecurePlugInInterface
    • setEnable

      public void setEnable(String s)
    • getAddSession

    • setAddSession

      public void setAddSession(String addSession)
    • getSslExtAddSession

      public boolean getSslExtAddSession()
      Specified by:
      getSslExtAddSession in interface SecurePlugInInterface
    • getSslExtEnable

      public boolean getSslExtEnable()
      Specified by:
      getSslExtEnable in interface SecurePlugInInterface
    • 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(String servletName, 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