com.endeca.infront.assembler.servlet.spring
Class SpringPreviewLinkServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.endeca.infront.assembler.servlet.AbstractPreviewLinkServlet
              extended by 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

Field Summary
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.
 
Constructor Summary
SpringPreviewLinkServlet()
           
 
Method Summary
protected  ContentSource getContentSource()
          Retrieves an ContentSource using the Spring Framework.
protected  NavigationStateBuilder getNavigationStateBuilder()
          Retrieves a NavigationStateBuilder using the Spring Framework.
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class com.endeca.infront.assembler.servlet.AbstractPreviewLinkServlet
doGet, getUrlForAction
 
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
 

Field Detail

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
Constructor Detail

SpringPreviewLinkServlet

public SpringPreviewLinkServlet()
Method Detail

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.