|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.droplet.ProtocolChange
public class ProtocolChange
The ChangeProtocol droplet takes in a url and outputs a full url to that location for both secure and insecure protocols. Enable this by setting the enable property to true.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static int |
DEFAULT_NON_SECURE_PORT
|
static int |
DEFAULT_SECURE_PORT
|
static ParameterName |
IN_URL
|
static ParameterName |
NON_SECURE_URL
|
static ParameterName |
OUTPUT
|
static ParameterName |
SECURE_URL
|
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ProtocolChange()
|
Method Summary | |
---|---|
int |
getDefaultNonSecurePort()
Deprecated. |
int |
getDefaultSecurePort()
Deprecated. |
java.lang.String |
getNonSecureHost()
|
int |
getNonSecurePort()
|
java.lang.String |
getNonSecureProtocol()
|
java.lang.String |
getSecureHost()
|
int |
getSecurePort()
|
java.lang.String |
getSecureProtocol()
|
boolean |
isEnable()
|
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Service the request |
void |
setDefaultNonSecurePort(int pDefaultNonSecurePort)
|
void |
setDefaultSecurePort(int pDefaultSecurePort)
Deprecated. |
void |
setEnable(boolean pEnable)
If this is true then the secureUrl and nonSecureUrl output parameters will be fully qualified urls to the appropriate secure or non secure server. |
void |
setNonSecureHost(java.lang.String pNonSecureHost)
|
void |
setNonSecurePort(int pNonSecurePort)
|
void |
setNonSecureProtocol(java.lang.String pNonSecureProtocol)
Sets the property nonSecureProtocol .Note, changing this property will NOT change the protocol used for non secure requests. http:// will always be used as the non secure protocol. |
void |
setSecureHost(java.lang.String pSecureHost)
|
void |
setSecurePort(int pSecurePort)
|
void |
setSecureProtocol(java.lang.String pSecureProtocol)
Sets the property secureProtocol .Note, changing this property will NOT change the protocol used for secure requests. https:// will always be used as the secure protocol. |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final int DEFAULT_SECURE_PORT
public static final int DEFAULT_NON_SECURE_PORT
public static final ParameterName IN_URL
public static final ParameterName OUTPUT
public static final ParameterName SECURE_URL
public static final ParameterName NON_SECURE_URL
Constructor Detail |
---|
public ProtocolChange()
Method Detail |
---|
public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pReq
- the request to be processedpRes
- the response object for this request
javax.servlet.ServletException
- an application specific error occurred
processing this request
java.io.IOException
- an error occurred reading data from the request
or writing data to the response.public void setEnable(boolean pEnable)
public boolean isEnable()
public void setSecureHost(java.lang.String pSecureHost)
public java.lang.String getSecureHost()
public void setNonSecureHost(java.lang.String pNonSecureHost)
public java.lang.String getNonSecureHost()
public void setSecurePort(int pSecurePort)
public int getSecurePort()
public void setNonSecurePort(int pNonSecurePort)
public int getNonSecurePort()
public void setSecureProtocol(java.lang.String pSecureProtocol)
secureProtocol
.
public java.lang.String getSecureProtocol()
public void setNonSecureProtocol(java.lang.String pNonSecureProtocol)
nonSecureProtocol
.
public java.lang.String getNonSecureProtocol()
public void setDefaultSecurePort(int pDefaultSecurePort)
public int getDefaultSecurePort()
public void setDefaultNonSecurePort(int pDefaultNonSecurePort)
public int getDefaultNonSecurePort()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |