public class SpringAssemblerServlet extends AbstractAssemblerServlet
AbstractAssemblerServlet
to provide the needed
AssemblerFactory
and ResponseWriter
using the
Spring Framework.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SpringAssemblerServlet() |
Modifier and Type | Method and Description |
---|---|
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) |
createAssemblerInput, doGet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static final String ASSEMBLER_FACTORY_ID_PARAM
AssemblerFactory
to use.public static final String RESPONSE_WRITER_ID_PARAM
ResponseWriter
to use.public static final String KEYWORD_REDIRECTS_PARAM
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public AssemblerFactory getAssemblerFactory()
AssemblerFactory
using the Spring Framework. The
ID of the Spring bean to return is specified using the servlet parameter
ASSEMBLER_FACTORY_ID_PARAM
.getAssemblerFactory
in class AbstractAssemblerServlet
public ResponseWriter getResponseWriter()
ResponseWriter
using the Spring Framework. The
ID of the Spring bean to return is specified using the servlet parameter
RESPONSE_WRITER_ID_PARAM
.getResponseWriter
in class AbstractAssemblerServlet
protected boolean enableKeywordRedirects()
AbstractAssemblerServlet
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
).
enableKeywordRedirects
in class AbstractAssemblerServlet
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.