public class HTTPSource extends SourceBase
http://host/graphId/edit?q=ACTION&...
. ACTION is one of the
following action :
Modifier and Type | Class and Description |
---|---|
(package private) static class |
HTTPSource.Action |
private class |
HTTPSource.EditHandler |
SourceBase.ElementType
Modifier and Type | Field and Description |
---|---|
protected com.sun.net.httpserver.HttpServer |
server
Http server.
|
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
HTTPSource(String graphId,
int port)
Create a new http source.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
error(com.sun.net.httpserver.HttpExchange ex,
String message) |
protected static HashMap<String,Object> |
GET(com.sun.net.httpserver.HttpExchange ex) |
void |
start()
Start the http server.
|
void |
stop()
Stop the http server.
|
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, manageEvents, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBegins
protected final com.sun.net.httpserver.HttpServer server
public HTTPSource(String graphId, int port) throws IOException
graphId
- id of the graphport
- port on which server will be boundIOException
- if server creation failed.public void start()
public void stop()
protected static void error(com.sun.net.httpserver.HttpExchange ex, String message) throws IOException
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses