public class SimpleConsumerServlet extends javax.servlet.http.HttpServlet implements IWSNConsumer
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleConsumerServlet.CallbackOnAvailableListener
A callback listener which is informed when the servlet is available.
|
Constructor and Description |
---|
SimpleConsumerServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
URL |
getPublicURL() |
void |
init(javax.servlet.ServletConfig config) |
static void |
registerCallbackOnAvailable(SimpleConsumerServlet.CallbackOnAvailableListener l) |
void |
setListener(HttpListener collectListener) |
void |
stop()
use to free resources
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void setListener(HttpListener collectListener)
setListener
in interface IWSNConsumer
collectListener
- the request listenerpublic void stop()
IWSNConsumer
stop
in interface IWSNConsumer
public URL getPublicURL()
getPublicURL
in interface IWSNConsumer
public static void registerCallbackOnAvailable(SimpleConsumerServlet.CallbackOnAvailableListener l)
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.