protected class StanfordCoreNLPServer.TokensRegexHandler
extends java.lang.Object
implements com.sun.net.httpserver.HttpHandler
Constructor and Description |
---|
TokensRegexHandler(java.util.function.Predicate<java.util.Properties> authenticator,
java.util.function.Consumer<StanfordCoreNLPServer.FinishedRequest> callback)
Create a new TokensRegex Handler.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(com.sun.net.httpserver.HttpExchange httpExchange) |
public TokensRegexHandler(java.util.function.Predicate<java.util.Properties> authenticator, java.util.function.Consumer<StanfordCoreNLPServer.FinishedRequest> callback)
callback
- The callback to call when annotation has finished.