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 |
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 |
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 ContentSource |
getContentSource() |
protected NavigationStateBuilder |
getNavigationStateBuilder() |
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 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()