Class SecurePlugIn
java.lang.Object
com.echothree.view.client.web.struts.sslext.action.SecurePlugIn
- All Implemented Interfaces:
SecurePlugInInterface,org.apache.struts.action.PlugIn
Implements sslext plugin functionality
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected String[]The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about.protected StringThe Java base name of our internal resources.protected org.apache.struts.util.MessageResourcesThe resources object for our internal resources.Fields inherited from interface com.echothree.view.client.web.struts.sslext.action.SecurePlugInInterface
DEFAULT_ADD_SESSION, DEFAULT_ENABLE, DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT, SECURE_PLUGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServletMapping(String servletName, String urlPattern) Remember all servlet mapping from our web application deployment descriptor, if it is for the Struts ActionServlet.voiddestroy()Remove stuff from the ServletContext (application).booleanbooleanvoidinit(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 voidInitialize the servlet mappings under which the Struts ActionServlet is accessed.protected voidInitialize our internal MessageResources bundle.voidsetAddSession(String addSession) voidvoidvoid
-
Field Details
-
addSession
-
httpPort
-
httpsPort
-
enable
-
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
The resources object for our internal resources. -
resourceName
The Java base name of our internal resources.- Since:
- Struts 1.1
-
-
Constructor Details
-
SecurePlugIn
public SecurePlugIn()
-
-
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:
initin interfaceorg.apache.struts.action.PlugIn- Parameters:
servlet- The Struts ActionServlet instance for the whole applicationconfig- The ApplicationConfig for our owning sub-application- Throws:
javax.servlet.ServletException- if we cannot configure ourselves correctly
-
destroy
Remove stuff from the ServletContext (application).- Specified by:
destroyin interfaceorg.apache.struts.action.PlugIn
-
setHttpsPort
-
setHttpPort
-
getHttpsPort
- Specified by:
getHttpsPortin interfaceSecurePlugInInterface
-
getHttpPort
- Specified by:
getHttpPortin interfaceSecurePlugInInterface
-
getServletMappings
- Specified by:
getServletMappingsin interfaceSecurePlugInInterface
-
getEnable
- Specified by:
getEnablein interfaceSecurePlugInInterface
-
setEnable
-
getAddSession
-
setAddSession
-
getSslExtAddSession
- Specified by:
getSslExtAddSessionin interfaceSecurePlugInInterface
-
getSslExtEnable
- Specified by:
getSslExtEnablein interfaceSecurePlugInInterface
-
initMappings
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
Initialize our internal MessageResources bundle.- Throws:
javax.servlet.ServletException- if we cannot initialize these resources
-
addServletMapping
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 mappedurlPattern- The URL pattern to which this servlet is mapped
-