|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--com.toalango.qzarch.servlet.AbstractQZarchServlet
This is an abstract servlet that can be subclassed by presentation specific servlet implementations.
Field Summary | |
protected boolean |
mDebug
Print debug statements to the console during execution? |
static java.lang.String |
PARAMETER_CASE_SENSITIVE
|
static java.lang.String |
PARAMETER_FILE_TYPE
|
static java.lang.String |
PARAMETER_FILE_TYPES
|
static java.lang.String |
PARAMETER_KEYWORDS
|
static java.lang.String |
PARAMETER_SUPPORT_EXPRESSIONS
|
static java.lang.String |
PARAMETER_TARGET
|
Constructor Summary | |
AbstractQZarchServlet()
|
Method Summary | |
protected void |
debug(java.lang.String pMessage)
Help method to print debug statements during development mode. |
void |
doGet(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Process the request |
void |
doPost(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Process the request |
abstract void |
handleResults(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse,
com.toalango.qzarch.Resource[] pResources,
java.lang.String pTarget)
Hand over the processing or the request to the implementing servlet in order to present the search result suing the desirable presentation technology. |
void |
init(javax.servlet.ServletConfig pServletConfig)
Initialise the servlet using the ServletConfig object. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, 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 |
public static final java.lang.String PARAMETER_KEYWORDS
public static final java.lang.String PARAMETER_TARGET
public static final java.lang.String PARAMETER_CASE_SENSITIVE
public static final java.lang.String PARAMETER_SUPPORT_EXPRESSIONS
public static final java.lang.String PARAMETER_FILE_TYPE
public static final java.lang.String PARAMETER_FILE_TYPES
protected boolean mDebug
Constructor Detail |
public AbstractQZarchServlet()
Method Detail |
public void init(javax.servlet.ServletConfig pServletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
pServletConfig
- The ServletConfig object provided by the container
javax.servlet.ServletException
- if the initialisation failedpublic void doPost(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doGet(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public abstract void handleResults(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, com.toalango.qzarch.Resource[] pResources, java.lang.String pTarget) throws java.io.IOException, javax.servlet.ServletException
pRequest
- The request being processedpResponse
- The response objectpResources
- The results from the searchpTarget
- The target (page, template, resource etc.)
java.io.IOException
- if an i/o problem occoured
javax.servlet.ServletException
- if the servlet failed in producing a responseprotected void debug(java.lang.String pMessage)
pMessage
- The message to print to the console
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |