public class WmsServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static int |
initDebugVal
debug trace output threshold level (can be set through web.xml parameter "debug")
|
static java.lang.String |
messageFile
path/file to message text file;
read by WMSException
|
Constructor and Description |
---|
WmsServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
answerCapabilitiesReq(WmsRequest request,
javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp)
answer a capabilities request
|
protected void |
answerExportReq(WmsRequest request,
javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp)
Answer a ExportInfo request.
|
protected void |
answerFeatureReq(WmsRequest request,
javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp)
Answer a feature request (not implemented throws an exception).
|
protected void |
answerFetchConfigurationFile(WmsRequest request,
javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp) |
protected void |
answerMapReq(WmsRequest request,
javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp)
Answer a map request.
|
protected void |
answerReloadReq(WmsRequest request,
javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp)
answer a reload capabilities request
- close database connection
- re-read config file (raswms.cfg; no re-read of web.xml!)
- re-establish connections to database
- no new thread is opened, current one is reused!
comment:
- see also uniqueInit()
- unclear: is changed configuration propagated to all threads?
|
protected void |
closeConnection()
close database connections
|
void |
destroy()
Clean up: close the database connection
|
void |
doGet(javax.servlet.http.HttpServletRequest requ,
javax.servlet.http.HttpServletResponse resp)
GET access of the servlet
|
void |
init(javax.servlet.ServletConfig servletConfig)
init method of the servlet.
|
protected void |
openConnection(WmsConfig configuration)
open rasdaman connection
precondition:
- valid configuration parameters set
|
protected void |
paintBlank(javax.servlet.http.HttpServletResponse resp,
WmsRequest request)
Respond with a blank image to the client.
|
protected void |
paintErrorMsg(javax.servlet.http.HttpServletResponse resp,
WmsRequest request,
java.lang.Exception e)
Send the exception to the client.
|
java.lang.String |
toString()
This should actually report information on the servlet.
|
protected void |
writeErrorMsg(java.io.PrintWriter out,
java.lang.Exception e)
Send exception to the client.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static int initDebugVal
public static java.lang.String messageFile
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public java.lang.String toString()
toString
in class java.lang.Object
public void doGet(javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp)
doGet
in class javax.servlet.http.HttpServlet
protected void answerFeatureReq(WmsRequest request, javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp) throws WMSException
WMSException
protected void answerExportReq(WmsRequest request, javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp) throws WMSException
WMSException
protected void answerMapReq(WmsRequest request, javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp) throws WMSException, java.lang.Exception
WMSException
java.lang.Exception
protected void writeErrorMsg(java.io.PrintWriter out, java.lang.Exception e)
protected void paintErrorMsg(javax.servlet.http.HttpServletResponse resp, WmsRequest request, java.lang.Exception e)
protected void paintBlank(javax.servlet.http.HttpServletResponse resp, WmsRequest request)
protected void answerCapabilitiesReq(WmsRequest request, javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp) throws WMSException
WMSException
protected void answerReloadReq(WmsRequest request, javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, WMSException, java.io.IOException
javax.servlet.ServletException
WMSException
java.io.IOException
protected void answerFetchConfigurationFile(WmsRequest request, javax.servlet.http.HttpServletRequest requ, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, WMSException, java.io.IOException
javax.servlet.ServletException
WMSException
java.io.IOException
protected void openConnection(WmsConfig configuration) throws javax.servlet.ServletException, WMSException
javax.servlet.ServletException
WMSException
protected void closeConnection()