public class SpringPreviewLinkServlet extends AbstractPreviewLinkServlet
AbstractPreviewLinkServlet to provide the needed
NavigationStateBuilder and ContentSource using the
Spring Framework.| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_SOURCE_BEAN_ID_PARAM
The servlet parameter used to specify the Spring bean ID of the
ContentSource to use. |
static String |
NAVIGATION_STATE_BUILDER_BEAN_ID_PARAM
The servlet parameter used to specify the Spring bean ID of the
NavigationStateBuilder to use. |
static String |
SITE_MANAGER_BEAN_ID_PARAM
The servlet parameter used to specify the Spring bean ID of the
SiteManager to use. |
| Constructor and Description |
|---|
SpringPreviewLinkServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentSource |
getContentSource()
Retrieves an
ContentSource using the Spring Framework. |
protected NavigationStateBuilder |
getNavigationStateBuilder()
Retrieves a
NavigationStateBuilder using the Spring Framework. |
protected SiteManager |
getSiteManager()
Retrieves an
SiteManager using the Spring Framework. |
void |
init(javax.servlet.ServletConfig config) |
doGet, getSiteIdParamForAction, getUrlForActiondoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String NAVIGATION_STATE_BUILDER_BEAN_ID_PARAM
NavigationStateBuilder to use.public static final String CONTENT_SOURCE_BEAN_ID_PARAM
ContentSource to use.public static final String SITE_MANAGER_BEAN_ID_PARAM
SiteManager to use.public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected NavigationStateBuilder getNavigationStateBuilder()
NavigationStateBuilder using the Spring Framework.
The ID of the Spring bean to return is specified using the servlet
parameter NAVIGATION_STATE_BUILDER_BEAN_ID_PARAM.getNavigationStateBuilder in class AbstractPreviewLinkServletprotected ContentSource getContentSource()
ContentSource using the Spring Framework.
The ID of the Spring bean to return is specified using the servlet
parameter CONTENT_SOURCE_BEAN_ID_PARAM.getContentSource in class AbstractPreviewLinkServletprotected SiteManager getSiteManager()
SiteManager using the Spring Framework.
The ID of the Spring bean to return is specified using the servlet
parameter SITE_MANAGER_BEAN_ID_PARAM.getSiteManager in class AbstractPreviewLinkServletCopyright © 2014, Oracle and/or its affiliates. All rights reserved.