public class NucleusPreviewLinkServlet
extends AbstractPreviewLinkServlet
AbstractPreviewLinkServlet to provide the needed
NavigationStateBuilder and ContentSource Nucleus components.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATG_SITE_MANAGER_COMPONENT_PARAM
The servlet parameter used to specify the
SiteManager Nucleus component to use. |
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
CONTENT_SOURCE_COMPONENT_PARAM
The servlet parameter used to specify the
ContentSource Nucleus component to use. |
static java.lang.String |
ENDECA_SITE_MANAGER_COMPONENT_PARAM
The servlet parameter used to specify the
com.endeca.infront.site.SiteManager Nucleus component to use. |
static java.lang.String |
NAVIGATION_STATE_BUILDER_COMPONENT_PARAM
The servlet parameter used to specify the
NavigationStateBuilder Nucleus component to use. |
| Constructor and Description |
|---|
NucleusPreviewLinkServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected SiteManager |
getAtgSiteManager() |
protected ContentSource |
getContentSource() |
protected NavigationStateBuilder |
getNavigationStateBuilder() |
protected java.lang.String |
getSiteIdParamForAction(NavigationAction action)
Returns the site id parameter with the ATG site id as the parameter value to append to the preview URL.
|
protected SiteManager |
getSiteManager() |
void |
init(javax.servlet.ServletConfig pConfig)
Initialize the servlet and retrieve the NavigationStateBuilder and ContentSource
components to be used in the super class.
|
public static final java.lang.String CLASS_VERSION
public static final java.lang.String NAVIGATION_STATE_BUILDER_COMPONENT_PARAM
NavigationStateBuilder Nucleus component to use.public static final java.lang.String CONTENT_SOURCE_COMPONENT_PARAM
ContentSource Nucleus component to use.public static final java.lang.String ENDECA_SITE_MANAGER_COMPONENT_PARAM
com.endeca.infront.site.SiteManager Nucleus component to use.public static final java.lang.String ATG_SITE_MANAGER_COMPONENT_PARAM
SiteManager Nucleus component to use.public void init(javax.servlet.ServletConfig pConfig)
throws javax.servlet.ServletException
pConfig - - The servlet configuration object.javax.servlet.ServletException - When the required NavigationStateBuilder or ContentSource
components can't be resolved.protected ContentSource getContentSource()
protected NavigationStateBuilder getNavigationStateBuilder()
protected SiteManager getSiteManager()
com.endeca.infront.site.SiteManager component.protected SiteManager getAtgSiteManager()
com.endeca.infront.site.SiteManager component.protected java.lang.String getSiteIdParamForAction(NavigationAction action)
action - The input action