|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.endeca.infront.assembler.servlet.AbstractAssemblerServlet
public abstract class AbstractAssemblerServlet
Servlet used to invoke the Assembler and process its results.
| Constructor Summary | |
|---|---|
AbstractAssemblerServlet()
|
|
| Method Summary | |
|---|---|
protected ContentItem |
createAssemblerInput(javax.servlet.http.HttpServletRequest req)
Creates and returns the appropriate input for the the Assembler
using the given request object. |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Creates an Assembler, passes it input based on the request,
and processes the results. |
protected abstract boolean |
enableKeywordRedirects()
A method to obtain whether or not keyword redirects should be supported. |
protected abstract AssemblerFactory |
getAssemblerFactory()
A method to retrieve an AssemblerFactory. |
protected abstract ResponseWriter |
getResponseWriter()
A method to retrieve a ResponseWriter. |
| 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, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAssemblerServlet()
| Method Detail |
|---|
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException,
javax.servlet.ServletException
Assembler, passes it input based on the request,
and processes the results.
doGet in class javax.servlet.http.HttpServletreq - The request the client has made of the servletresp - The response the servlet sends to the client
IOException - If an input or output error is detected when
the servlet handles the GET request
javax.servlet.ServletException - If the GET request could not be handledprotected ContentItem createAssemblerInput(javax.servlet.http.HttpServletRequest req)
Assembler
using the given request object. This implementation does so by
using the request path to construct a ContentInclude object, if
keyword redirects are not enabled, or a RedirectAwareContentInclude,
if keyword redirects are enabled.
req - The servlet request
AssemblerenableKeywordRedirects()
protected abstract AssemblerFactory getAssemblerFactory()
throws javax.servlet.ServletException
AssemblerFactory. Subclasses must
override this method to provide a specific means of acquiring
the factory.
javax.servlet.ServletException - If something went wrong retrieving the factory
protected abstract ResponseWriter getResponseWriter()
throws javax.servlet.ServletException
ResponseWriter. Subclasses must
override this method to provide a specific means of acquiring
the writer.
javax.servlet.ServletException - If something went wrong retrieving the writerprotected abstract boolean enableKeywordRedirects()
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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||