public abstract class OWSServlet
extends javax.servlet.http.HttpServlet
Abstract Base Class for all OWS Style Servlets
Modifier and Type | Field and Description |
---|---|
protected DOMHelper |
capsHelper |
protected static String |
internalErrorMsg |
protected static String |
invalidKVPRequestMsg |
protected static String |
invalidXMLRequestMsg |
protected OWSUtils |
owsUtils |
protected String |
owsVersion |
Constructor and Description |
---|
OWSServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Parse and process HTTP GET request
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Parse and process HTTP POST request
|
protected String |
getDefaultVersion() |
protected abstract String |
getServiceType() |
protected Element |
getSoapBody(DOMHelper dom) |
protected String |
getSoapVersion(DOMHelper dom) |
protected void |
handleRequest(GetCapabilitiesRequest request) |
protected abstract void |
handleRequest(OWSRequest request) |
protected boolean |
isClientDisconnected(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected OWSRequest |
parseRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean isXmlRequest)
Parse KVP or XML request to generate java request object
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean isXmlRequest)
Process all types of requests
|
protected void |
sendCapabilities(String section,
OutputStream resp)
Sends the whole capabilities document in response to GetCapabilities request
|
protected void |
sendResponse(OWSRequest request,
OWSResponse resp) |
void |
updateCapabilities(InputStream capsFile) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected static final String invalidKVPRequestMsg
protected static final String invalidXMLRequestMsg
protected static final String internalErrorMsg
protected String owsVersion
protected OWSUtils owsUtils
protected DOMHelper capsHelper
protected abstract void handleRequest(OWSRequest request) throws Exception
Exception
protected void handleRequest(GetCapabilitiesRequest request) throws Exception
Exception
protected void sendCapabilities(String section, OutputStream resp) throws Exception
resp
- IOException
Exception
public void updateCapabilities(InputStream capsFile)
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
protected boolean isClientDisconnected(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void processRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean isXmlRequest)
req
- resp
- isXmlRequest
- protected OWSRequest parseRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean isXmlRequest) throws Exception
req
- isXmlRequest
- Exception
protected Element getSoapBody(DOMHelper dom) throws IOException
IOException
protected void sendResponse(OWSRequest request, OWSResponse resp) throws OWSException, IOException
OWSException
IOException
protected String getDefaultVersion()
protected abstract String getServiceType()
Copyright © 2016 Sensia Software LLC. All rights reserved.