public class ActionURLDroplet
extends atg.servlet.DynamoServlet
contentPath and navigationState.
For the RecordAction type of Action the URL is built of request's context path,
action's contentPath and recordState.
For the UrlAction type of Action the URL is built of request's context path (only in
the case of relative URL) and action's URL.
Input parameters:
action object to produce URL for.Output parameters:
Open parameters rendered by the droplet:
output oparam is rendered when the not empty URL is represented
by the Action object.empty oparam is rendered in the case of empty URL.Here is the example of droplet's usage: <dsp:droplet name="ActionURLDroplet"> <dsp:param name="action" value="${contentItem.link}"/> <dsp:oparam name="output"> <dsp:getvalueof var="actionURL" param="actionURL"/> <c:set var="url" value="${originatingRequest.contextPath}${actionURL}"/> </dsp:oparam> <dsp:oparam name="empty"> <c:set var="url" value="#"/> </dsp:oparam> </dsp:droplet>
| Modifier and Type | Field and Description |
|---|---|
static atg.nucleus.naming.ParameterName |
ACTION
Action object input parameter name
|
static java.lang.String |
ACTION_URL
The URL for the action output parameter name
|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
EMPTY
Empty parameter name.
|
static java.lang.String |
OUTPUT
Output parameter name.
|
static java.lang.String |
URL_SEPARATOR
URL separator
|
| Constructor and Description |
|---|
ActionURLDroplet() |
| Modifier and Type | Method and Description |
|---|---|
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Builds the complete URL string for the Endeca-produced action object.
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameterdestroy, getServletConfig, getServletInfo, setServletInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
public static final atg.nucleus.naming.ParameterName ACTION
public static final java.lang.String ACTION_URL
public static final java.lang.String OUTPUT
public static final java.lang.String EMPTY
public static final java.lang.String URL_SEPARATOR
public void service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
service in class atg.servlet.DynamoServletjavax.servlet.ServletExceptionjava.io.IOException