protected class StanfordCoreNLPServer.TregexHandler extends Object implements com.sun.net.httpserver.HttpHandler
| Constructor and Description |
|---|
TregexHandler(Predicate<Properties> authenticator,
Consumer<StanfordCoreNLPServer.FinishedRequest> callback)
Create a new Tregex Handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(com.sun.net.httpserver.HttpExchange httpExchange) |
public TregexHandler(Predicate<Properties> authenticator, Consumer<StanfordCoreNLPServer.FinishedRequest> callback)
callback - The callback to call when annotation has finished.public void handle(com.sun.net.httpserver.HttpExchange httpExchange)
throws IOException
handle in interface com.sun.net.httpserver.HttpHandlerIOException