Package de.pangaea.metadataportal.push
Class PushServer
- java.lang.Object
-
- de.pangaea.metadataportal.push.PushServer
-
public class PushServer extends Object
Provides a simple HTTP server that accepts push requests. It can be used as a replacement for a real harvester. In such cases, it is recommended to useNoOpHarvester
in the config. Once started, the server by default listens on 127.0.0.1, port 8089.You can index a document by doing a
PUT
request and delete documents by doing aDELETE
request. The path pattern is:/harvesterID/identifier
. If the harvester does not exist a 404 Not Found is returned. The push serverTo configure host and port, pass system properties
server.host
andserver.port
. If you want to prepend all path names with some constant prefix, pass system propertyserver.rootPath
. This prepends this path to the above pattern.- Author:
- Uwe Schindler
- See Also:
NoOpHarvester
-
-
Constructor Summary
Constructors Constructor Description PushServer(Config conf, String host, int port, String rootPath)
-