public class SiteLinkDroplet extends DynamoServlet
siteId
parameter. If the siteId
isn't provided, the
current site will be used. An optional path
parameter will be
included in the returned URL. An optional queryParams
parameter
will be included in the returned URL. An optional protocol
inInclude is ture, relative URLs will be relative to the
included page's path, not the current request path. The output parameters for
this Droplet are:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static ParameterName |
ERROR
ParameterName for error
|
static java.lang.String |
ERROR_MSG_PROP_NAME
Parameter name for errorMessage
|
static ParameterName |
IN_INCLUDE
ParameterName for inInclude
|
static ParameterName |
OUTPUT
ParameterName for output
|
static ParameterName |
PATH
ParameterName for path
|
static ParameterName |
PROTOCOL
ParameterName for protocol
|
static ParameterName |
QUERY_PARAMS
ParameterName for queryParams
|
static ParameterName |
SITE_ID
Class version string
|
static java.lang.String |
URL_PROP_NAME
Parameter name for url
|
static java.lang.String |
USE_REMAP_PROP_NAME
query parameter name for remap
|
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
SiteLinkDroplet() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
addDoNotRemapQueryParam(java.lang.String pUrl)
tack on a special query param to the url to
indicate to the dsp:a tag that this url should
not be reverse mapped.
|
java.lang.String |
getProtocol()
Gets the default protocol.
|
SiteURLManager |
getSiteURLManager()
Gets the SiteURLManager.
|
boolean |
isInInclude()
Gets if the link is in an included page.
|
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
This method provides the default implementation of service,
by dispatching to conventionally named methods which begin
with "do".
|
void |
setInInclude(boolean pInInclude)
Sets if the link is in an included page.
|
void |
setProtocol(java.lang.String pProtocol)
Sets the default protocol
|
void |
setSiteURLManager(SiteURLManager pSiteURLManager)
Sets the SiteURLManager
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, 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, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final ParameterName SITE_ID
public static final ParameterName PROTOCOL
public static final ParameterName OUTPUT
public static final ParameterName PATH
public static final ParameterName QUERY_PARAMS
public static final ParameterName ERROR
public static final java.lang.String ERROR_MSG_PROP_NAME
public static final java.lang.String URL_PROP_NAME
public static final java.lang.String USE_REMAP_PROP_NAME
public static final ParameterName IN_INCLUDE
public SiteURLManager getSiteURLManager()
public void setSiteURLManager(SiteURLManager pSiteURLManager)
pSiteURLManager
- the siteURLManager to setpublic java.lang.String getProtocol()
public void setProtocol(java.lang.String pProtocol)
pProtocol
- the protocol to setpublic boolean isInInclude()
public void setInInclude(boolean pInInclude)
pInInclude
- the inInclude to setpublic void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
DynamoServlet
service
in class DynamoServlet
pReq
- The requestpRes
- The responsejavax.servlet.ServletException
- The ServletExceptionjava.io.IOException
- The IOExceptionDynamoServlet.service(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
protected java.lang.String addDoNotRemapQueryParam(java.lang.String pUrl)
pUrl
- the url to add query param to