public class PushServer extends ObjectProvides 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 use
NoOpHarvesterin the config. Once started, the server by default listens on 127.0.0.1, port 8089.
You can index a document by doing a
PUTrequest and delete documents by doing a
DELETErequest. The path pattern is:
/harvesterID/identifier. If the harvester does not exist a 404 Not Found is returned. The push server
To configure host and port, pass system properties
server.port. If you want to prepend all path names with some constant prefix, pass system property
server.rootPath. This prepends this path to the above pattern.
- Uwe Schindler
- See Also: