public class JumpServlet extends InsertableServletImpl
The ItemLink droplet in the same package as this generates dynamic URLs for normal users and static URLs for search spiders. The purpose of the JumpServlet is to handle HTTP requests which have these static URLs as their request URI, since these do not correspond to actual page content.
This servlet class will perform the following steps:
In the case of search spiders, a forward will always be used since it is undesirable for them to work with dynamic URLs. Redirects usually take place for normal visitors that have clicked on a static URL in a search results page.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
JumpServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStartService()
Initialises the jump servlet.
|
Repository |
getDefaultRepository() |
WebApp |
getDefaultWebApp() |
IndirectUrlTemplate[] |
getTemplates() |
boolean |
isPrependContextPathForRedirect()
Returns property prependContextPathForRedirect
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Main service method of this servlet.
|
void |
setDefaultRepository(Repository pDefaultRepository) |
void |
setDefaultWebApp(WebApp pDefaultWebApp) |
void |
setPrependContextPathForRedirect(boolean pPrependContextPathForRedirect)
Sets the prependContextPathForRedirect property
|
void |
setTemplates(IndirectUrlTemplate[] pTemplates) |
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, waitgetNextServlet, passRequest, setNextServletpublic IndirectUrlTemplate[] getTemplates()
IndirectUrlTemplate instances.public void setTemplates(IndirectUrlTemplate[] pTemplates)
pTemplates - The array of IndirectUrlTemplate instances to set.public Repository getDefaultRepository()
public void setDefaultRepository(Repository pDefaultRepository)
pDefaultRepository - The default repository to set.public WebApp getDefaultWebApp()
WebApp that is configured for this jump servlet instance.public void setDefaultWebApp(WebApp pDefaultWebApp)
pDefaultWebApp - The default WebApp to set.public boolean isPrependContextPathForRedirect()
public void setPrependContextPathForRedirect(boolean pPrependContextPathForRedirect)
pPrependContextPathForRedirect - The property value to setpublic void doStartService()
throws ServiceException
doStartService in class InsertableServletImplServiceExceptionGenericService.doStartService()public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This will match the request URI against a known IndirectUrlTemplate using its
templates property
When a match is made, it extracts the parameters from the URL and generates a destination URL using these parameters as query parameters. It then either forwards or redirects the visitor to the destination URL.
service in class PipelineableServletImplpRequest - The HTTP requestpResponse - The HTTP responsejavax.servlet.ServletException - Indicates an errorjava.io.IOException - Indicates an error