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 String
protected String
protected String
protected String
protected String[]
The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about.protected String
The Java base name of our internal resources.protected org.apache.struts.util.MessageResources
The 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 TypeMethodDescriptionvoid
addServletMapping
(String servletName, 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).boolean
boolean
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
Initialize the servlet mappings under which the Struts ActionServlet is accessed.protected void
Initialize our internal MessageResources bundle.void
setAddSession
(String addSession) void
void
void
-
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:
init
in 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:
destroy
in interfaceorg.apache.struts.action.PlugIn
-
setHttpsPort
-
setHttpPort
-
getHttpsPort
- Specified by:
getHttpsPort
in interfaceSecurePlugInInterface
-
getHttpPort
- Specified by:
getHttpPort
in interfaceSecurePlugInInterface
-
getServletMappings
- Specified by:
getServletMappings
in interfaceSecurePlugInInterface
-
getEnable
- Specified by:
getEnable
in interfaceSecurePlugInInterface
-
setEnable
-
getAddSession
-
setAddSession
-
getSslExtAddSession
- Specified by:
getSslExtAddSession
in interfaceSecurePlugInInterface
-
getSslExtEnable
- Specified by:
getSslExtEnable
in 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
-