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

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.endeca.infront.assembler.servlet.AbstractAssemblerServlet
              extended by com.endeca.infront.assembler.servlet.spring.SpringAssemblerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SpringAssemblerServlet
extends AbstractAssemblerServlet

Extends the AbstractAssemblerServlet to provide the needed AssemblerFactory and ResponseWriter using the Spring Framework.

See Also:
The Spring Framework, Serialized Form

Field Summary
static String ASSEMBLER_FACTORY_ID_PARAM
          The servlet parameter used to specify the Spring bean ID of the AssemblerFactory to use.
static String KEYWORD_REDIRECTS_PARAM
          The servlet parameter used to enable keyword redirects.
static String RESPONSE_WRITER_ID_PARAM
          The servlet parameter used to specify the Spring bean ID of the ResponseWriter to use.
 
Constructor Summary
SpringAssemblerServlet()
           
 
Method Summary
protected  boolean enableKeywordRedirects()
          A method to obtain whether or not keyword redirects should be supported.
 AssemblerFactory getAssemblerFactory()
          Retrieves an AssemblerFactory using the Spring Framework.
 ResponseWriter getResponseWriter()
          Retrieves a ResponseWriter using the Spring Framework.
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class com.endeca.infront.assembler.servlet.AbstractAssemblerServlet
createAssemblerInput, doGet
 
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

ASSEMBLER_FACTORY_ID_PARAM

public static final String ASSEMBLER_FACTORY_ID_PARAM
The servlet parameter used to specify the Spring bean ID of the AssemblerFactory to use.

See Also:
Constant Field Values

RESPONSE_WRITER_ID_PARAM

public static final String RESPONSE_WRITER_ID_PARAM
The servlet parameter used to specify the Spring bean ID of the ResponseWriter to use.

See Also:
Constant Field Values

KEYWORD_REDIRECTS_PARAM

public static final String KEYWORD_REDIRECTS_PARAM
The servlet parameter used to enable keyword redirects. The value should be "true" or "false". If not specified, "false" is assumed.

See Also:
Constant Field Values
Constructor Detail

SpringAssemblerServlet

public SpringAssemblerServlet()
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

getAssemblerFactory

public AssemblerFactory getAssemblerFactory()
Retrieves an AssemblerFactory using the Spring Framework. The ID of the Spring bean to return is specified using the servlet parameter ASSEMBLER_FACTORY_ID_PARAM.

Specified by:
getAssemblerFactory in class AbstractAssemblerServlet
Returns:
The factory

getResponseWriter

public ResponseWriter getResponseWriter()
Retrieves a ResponseWriter using the Spring Framework. The ID of the Spring bean to return is specified using the servlet parameter RESPONSE_WRITER_ID_PARAM.

Specified by:
getResponseWriter in class AbstractAssemblerServlet
Returns:
The writer

enableKeywordRedirects

protected boolean enableKeywordRedirects()
Description copied from class: AbstractAssemblerServlet
A method to obtain whether or not keyword redirects should be supported.

Note that if this method returns true, keyword redirect information will be returned whenever a search term matches a defined redirect. Therefore, services that use search terms but do not want keyword redirects (like the dimension search service) must disable redirects via their content.xml file (by supplying an empty redirectCollection).

Specified by:
enableKeywordRedirects in class AbstractAssemblerServlet
Returns:
true if keyword redirects should be enabled.


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.