public class ProtocolSwitchServlet
extends atg.servlet.pipeline.InsertableServletImpl
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
protected boolean |
mEnabled
Enabled property.
|
protected java.lang.String |
mHostName
Host name.
|
protected int |
mHttpPort
Http port.
|
protected int |
mHttpsPort
Https port.
|
protected java.lang.String[] |
mIgnoreList
List of paths to ignore.
|
protected java.lang.String |
mSecureHostName
Secure host name.
|
protected java.lang.String[] |
mSecureList
List of secure paths to protect.
|
static java.lang.String |
NONSECURE_PROTOCOL
Nonsecure protocol constant.
|
static java.lang.String |
SECURE_PROTOCOL
Secure protocol constant.
|
| Constructor and Description |
|---|
ProtocolSwitchServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStartService()
Called after the service has been created, placed into the naming
hierarchy, and initialized with its configured property values.
|
java.lang.String |
getAddressForUrl(java.lang.String pHostname)
Return the ipv6 address string wrapping i side the '[' ']' for the given ip address
|
java.lang.String |
getHostName() |
int |
getHttpPort() |
int |
getHttpsPort() |
java.lang.String[] |
getIgnoreList() |
protected java.lang.String |
getNonSecureUrl(java.lang.String pUrl)
Build a nonSecure url.
|
java.lang.String |
getSecureHostName() |
java.lang.String[] |
getSecureList() |
protected java.lang.String |
getSecureUrl(java.lang.String pUrl)
Build a Secure url.
|
protected boolean |
isCurrentPathInIgnoreList(java.lang.String pPath)
Method used check if the requested URI is part of the ignored list.
|
protected boolean |
isCurrentPathInSecureList(java.lang.String pPath)
Method used check if the requested URI is part of the secure list.
|
boolean |
isEnabled() |
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Called in the pipeline when a request needs to be processed.
|
void |
setEnabled(boolean pEnabled) |
void |
setHostName(java.lang.String pHostName) |
void |
setHttpPort(int pHttpPort) |
void |
setHttpsPort(int pHttpsPort) |
void |
setIgnoreList(java.lang.String[] pIgnoreList) |
void |
setSecureHostName(java.lang.String pSecureHostName) |
void |
setSecureList(java.lang.String[] pSecureList)
Set the secure list.
|
getInsertAfterServlet, setInsertAfterServletcreateAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, doStopService, getAbsoluteName, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String CLASS_VERSION
public static final java.lang.String SECURE_PROTOCOL
public static final java.lang.String NONSECURE_PROTOCOL
protected java.lang.String[] mSecureList
protected java.lang.String[] mIgnoreList
protected java.lang.String mHostName
protected int mHttpPort
protected int mHttpsPort
protected java.lang.String mSecureHostName
protected boolean mEnabled
public java.lang.String[] getIgnoreList()
public void setIgnoreList(java.lang.String[] pIgnoreList)
pIgnoreList - - the ignore list to set.public java.lang.String getSecureHostName()
public void setSecureHostName(java.lang.String pSecureHostName)
pSecureHostName - - secure host name.public int getHttpsPort()
public void setHttpsPort(int pHttpsPort)
pHttpsPort - - https port.public int getHttpPort()
public void setHttpPort(int pHttpPort)
pHttpPort - - http port.public java.lang.String getHostName()
public void setHostName(java.lang.String pHostName)
pHostName - - host name.public void setSecureList(java.lang.String[] pSecureList)
pSecureList - - array of protected urlspublic java.lang.String[] getSecureList()
public boolean isEnabled()
public void setEnabled(boolean pEnabled)
pEnabled - - the enabled status to set.public void service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
service in class atg.servlet.pipeline.PipelineableServletImplpRequest - The servlet's requestpResponse - The servlet's responsejavax.servlet.ServletException - if an error occurred while processing the servlet requestjava.io.IOException - if an error occurred while reading or writing the servlet
requestprotected boolean isCurrentPathInSecureList(java.lang.String pPath)
pPath - The requested URI without query parametersprotected boolean isCurrentPathInIgnoreList(java.lang.String pPath)
pPath - The requested URI without query parametersprotected java.lang.String getNonSecureUrl(java.lang.String pUrl)
pUrl - - url to build full url forprotected java.lang.String getSecureUrl(java.lang.String pUrl)
pUrl - - url to build full url forpublic void doStartService()
throws atg.nucleus.ServiceException
doStartService in class atg.servlet.pipeline.InsertableServletImplatg.nucleus.ServiceException - if the service had a problem starting uppublic java.lang.String getAddressForUrl(java.lang.String pHostname)
pHostname - The ip address to be wrapped