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