public class SOSServlet extends SOSServlet
Extension of SOSServlet deployed as a SensorHub service
BINARY_MIME_TYPE, DEFAULT_VERSION, SOAP_PREFIX, SOS_PREFIX, SWES_PREFIX, TEXT_MIME_TYPE, UNSUPPORTED_MSG
capsHelper, internalErrorMsg, invalidKVPRequestMsg, invalidXMLRequestMsg, owsUtils, owsVersion
Modifier | Constructor and Description |
---|---|
protected |
SOSServlet(SOSServiceConfig config,
SOSSecurity securityHandler,
org.slf4j.Logger log) |
getServiceType, handleRequest
doGet, doPost, getSoapBody, getSoapVersion, isClientDisconnected, parseRequest, processRequest, sendCapabilities, sendResponse, updateCapabilities
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
protected SOSServlet(SOSServiceConfig config, SOSSecurity securityHandler, org.slf4j.Logger log)
protected void start() throws SensorHubException
SensorHubException
protected void stop()
protected void generateCapabilities() throws SensorHubException
SensorHubException
protected void showProviderCaps(ISOSDataProviderFactory provider)
protected void hideProviderCaps(ISOSDataProviderFactory provider)
protected AbstractProcess generateSensorML(String uri, TimeExtent timeExtent) throws ServiceException
uri
- ServiceException
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void handleRequest(GetCapabilitiesRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(DescribeSensorRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(GetObservationRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(GetResultTemplateRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(GetResultRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(GetFeatureOfInterestRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(InsertSensorRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void startSoapEnvelope(OWSRequest request, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
protected void endSoapEnvelope(OWSRequest request, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
protected boolean writeCustomFormatStream(GetResultRequest request, ISOSDataProvider dataProvider) throws Exception
Exception
protected boolean isRequestFromBrowser(GetResultRequest request)
protected void handleRequest(DeleteSensorRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(UpdateSensorRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(InsertObservationRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(InsertResultTemplateRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void handleRequest(InsertResultRequest request) throws Exception
handleRequest
in class SOSServlet
Exception
protected void checkQueryOfferings(List<String> offerings, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryObservables(String offeringID, List<String> observables, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryObservables(List<String> observables, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryProcedures(String offeringID, List<String> procedures, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryProcedures(List<String> procedures, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryFormat(String offeringID, String format, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryTime(String offeringID, TimeExtent requestTime, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryProcedure(String sensorUID, OWSExceptionReport report) throws SOSException
SOSException
protected void checkQueryProcedureFormat(String offeringID, String format, OWSExceptionReport report) throws SOSException
SOSException
protected void checkSensorML(AbstractProcess smlProcess, OWSExceptionReport report) throws Exception
Exception
protected SOSOfferingCapabilities checkAndGetOffering(String offeringID) throws SOSException
SOSException
protected ISOSDataProvider getDataProvider(String offering, SOSDataFilter filter) throws Exception
Exception
protected ISOSDataProviderFactory getDataProviderFactoryByOfferingID(String offering) throws Exception
Exception
protected ISOSDataProviderFactory getDataProviderFactoryBySensorID(String sensorID) throws Exception
Exception
protected ISOSDataConsumer getDataConsumerByOfferingID(String offering) throws Exception
Exception
protected ISOSDataConsumer getDataConsumerBySensorID(String sensorID) throws Exception
Exception
protected ISOSDataConsumer getDataConsumerByTemplateID(String templateID) throws Exception
Exception
protected void checkTransactionalSupport(OWSRequest request) throws Exception
Exception
protected String getDefaultVersion()
getDefaultVersion
in class OWSServlet
Copyright © 2016 Sensia Software LLC. All rights reserved.