com.endeca.infront.assembler.servlet.spring
Class SpringPreviewLinkServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.endeca.infront.assembler.servlet.AbstractPreviewLinkServlet
com.endeca.infront.assembler.servlet.spring.SpringPreviewLinkServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class SpringPreviewLinkServlet
- extends AbstractPreviewLinkServlet
Extends the AbstractPreviewLinkServlet
to provide the needed
NavigationStateBuilder
and ContentSource
using the
Spring Framework.
- See Also:
- The Spring Framework,
Serialized Form
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAVIGATION_STATE_BUILDER_BEAN_ID_PARAM
public static final String NAVIGATION_STATE_BUILDER_BEAN_ID_PARAM
- The servlet parameter used to specify the Spring bean ID of the
NavigationStateBuilder
to use.
- See Also:
- Constant Field Values
CONTENT_SOURCE_BEAN_ID_PARAM
public static final String CONTENT_SOURCE_BEAN_ID_PARAM
- The servlet parameter used to specify the Spring bean ID of the
ContentSource
to use.
- See Also:
- Constant Field Values
SpringPreviewLinkServlet
public SpringPreviewLinkServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
getNavigationStateBuilder
protected NavigationStateBuilder getNavigationStateBuilder()
- Retrieves a
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
.
- Specified by:
getNavigationStateBuilder
in class AbstractPreviewLinkServlet
- Returns:
- the NavigationStateBuilder
getContentSource
protected ContentSource getContentSource()
- Retrieves an
ContentSource
using the Spring Framework.
The ID of the Spring bean to return is specified using the servlet
parameter CONTENT_SOURCE_BEAN_ID_PARAM
.
- Specified by:
getContentSource
in class AbstractPreviewLinkServlet
- Returns:
- the ContentSource
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.