|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectHttpServlet
org.eclipse.smila.search.servlet.SMILASearchServlet
public class SMILASearchServlet
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PIPELINE
default pipeline name. |
static java.lang.String |
DEFAULT_STYLESHEET
default stylesheet name. |
static java.lang.String |
ELEMENT_INDEX_NAME
Element name for a index names list entry. |
static java.lang.String |
ELEMENT_INDEX_NAMES
Element name for the index names list. |
| Constructor Summary | |
|---|---|
SMILASearchServlet()
|
|
| Method Summary | |
|---|---|
protected void |
appendIndexList(org.w3c.dom.Document doc)
Appends a list of index names to the document. |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
|
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
|
protected void |
doPut(HttpServletRequest request,
HttpServletResponse response)
|
protected ServletFileUpload |
getFileUploadParser()
ensure and return a file upload parser. |
protected javax.xml.transform.Transformer |
getXSLTransformer(org.w3c.dom.Document xslDoc)
create XSL transformer for stylesheet. |
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
extract query parameters from request, create SMILA Query record and send it to a SearchService, transform the DOM result to HTML using an XSLT stylesheet. |
protected byte[] |
transform(org.w3c.dom.Document doc,
java.lang.String stylesheet)
transform DOM documment using stylesheet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PIPELINE
public static final java.lang.String DEFAULT_STYLESHEET
public static final java.lang.String ELEMENT_INDEX_NAMES
public static final java.lang.String ELEMENT_INDEX_NAME
| Constructor Detail |
|---|
public SMILASearchServlet()
| Method Detail |
|---|
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
ServletException
java.io.IOExceptionjavax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
ServletException
java.io.IOExceptionjavax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
protected void doPut(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
ServletException
java.io.IOExceptionjavax.servlet.http.HttpServlet#doPut(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
request - HTTP requestresponse - HTTP response
ServletException - error during processing
java.io.IOException - error writing result to response stream
protected byte[] transform(org.w3c.dom.Document doc,
java.lang.String stylesheet)
throws ServletException
doc - DOM search result documentstylesheet - stylesheet name (without .xsl suffix)
ServletException - error during transformation
protected javax.xml.transform.Transformer getXSLTransformer(org.w3c.dom.Document xslDoc)
throws ServletException
xslDoc - XSL DOM document
ServletException - error.protected void appendIndexList(org.w3c.dom.Document doc)
doc - the document to append the list toprotected ServletFileUpload getFileUploadParser()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||