public abstract class DqcHandler extends Object
Only two methods need to be implemented:
The initWithHandlerConfigDoc() method does not need to do anything. It is just there in case your handler needs some setup information.
| Constructor and Description |
|---|
DqcHandler() |
| Modifier and Type | Method and Description |
|---|---|
static DqcHandler |
factory(DqcServletConfigItem handlerInfo,
String configPath)
Return a DqcHandler using the handler information in the given DqcServletConfigItem.
|
protected DqcServletConfigItem |
getHandlerInfo() |
abstract void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This abstract method is used by the DqcServlet to generate an HttpServletResponse
from the given HttpServletRequest.
|
abstract void |
initWithHandlerConfigDoc(URL handlerConfigDocURL)
This abstract method initializes the DqcHandler from configuration information.
|
protected void |
setHandlerInfo(DqcServletConfigItem info) |
protected DqcServletConfigItem getHandlerInfo()
protected void setHandlerInfo(DqcServletConfigItem info)
public static final DqcHandler factory(DqcServletConfigItem handlerInfo, String configPath) throws DqcHandlerInstantiationException, IOException
handlerInfo - - the information about the requested DQC handler.configPath - - the file or resource path to the DqcServlet config files.DqcHandlerInstantiationException - if the requested DqcHandler cannot be instatiated.IOException - if the config document could not be read.SecurityException - (runtime)public abstract void initWithHandlerConfigDoc(URL handlerConfigDocURL) throws IOException
handlerConfigDocURL - - a URL to the DQC handler config document.IOException - if trouble reading config file.IllegalArgumentException - if config document does not contain the needed information.public abstract void handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
req - - HttpServletRequest to a concrete DqcHandler.res - - HttpServletResponse generated for the given request.IOException - if an I/O error is detected (when communicating with client not for servlet internal IO problems).javax.servlet.ServletException - if the request could not be handled for some reason.Copyright © 1999–2013 UCAR/Unidata. All rights reserved.