public class SecurePlugIn extends java.lang.Object implements SecurePlugInInterface
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
addSession |
protected java.lang.String |
enable |
protected java.lang.String |
httpPort |
protected java.lang.String |
httpsPort |
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.
|
protected java.lang.String |
resourceName
The Java base name of our internal resources.
|
protected org.apache.struts.util.MessageResources |
resources
The resources object for our internal resources.
|
DEFAULT_ADD_SESSION, DEFAULT_ENABLE, DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT, SECURE_PLUGIN| Constructor and Description |
|---|
SecurePlugIn() |
| Modifier and Type | Method and 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) |
protected java.lang.String addSession
protected java.lang.String httpPort
protected java.lang.String httpsPort
protected java.lang.String enable
protected java.lang.String[] registrations
protected org.apache.struts.util.MessageResources resources
protected java.lang.String resourceName
public void init(org.apache.struts.action.ActionServlet servlet,
org.apache.struts.config.ModuleConfig config)
throws javax.servlet.ServletException
init in interface org.apache.struts.action.PlugInservlet - The Struts ActionServlet instance for the whole applicationconfig - The ModuleConfig for our owning modulejavax.servlet.ServletException - if we cannot configure ourselves correctlypublic void destroy()
destroy in interface org.apache.struts.action.PlugInpublic void setHttpsPort(java.lang.String s)
public void setHttpPort(java.lang.String s)
public java.lang.String getHttpsPort()
getHttpsPort in interface SecurePlugInInterfacepublic java.lang.String getHttpPort()
getHttpPort in interface SecurePlugInInterfacepublic java.util.Collection getServletMappings()
getServletMappings in interface SecurePlugInInterfacepublic java.lang.String getEnable()
getEnable in interface SecurePlugInInterfacepublic void setEnable(java.lang.String s)
public java.lang.String getAddSession()
public void setAddSession(java.lang.String addSession)
public boolean getSslExtAddSession()
getSslExtAddSession in interface SecurePlugInInterfacepublic boolean getSslExtEnable()
getSslExtEnable in interface SecurePlugInInterfaceprotected void initMappings()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected void initResources()
throws javax.servlet.ServletException
javax.servlet.ServletException - if we cannot initialize these resourcespublic void addServletMapping(java.lang.String servletName,
java.lang.String urlPattern)
servletName - The name of the servlet being mappedurlPattern - The URL pattern to which this servlet is mappedCopyright 1999, 2025 The Apache Software Foundation, All Rights Reserved