Class ServerTools
java.lang.Object
org.languagetool.server.ServerTools
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static @Nullable StringgetHttpReferrer(com.sun.net.httpserver.HttpExchange httpExchange) (package private) static @Nullable StringgetHttpUserAgent(com.sun.net.httpserver.HttpExchange httpExchange) (package private) static @NotNull StringgetLoggingInfo(String remoteAddress, Exception e, int errorCode, com.sun.net.httpserver.HttpExchange httpExchange, Map<String, String> params, long runtimeMillis, RequestCounter reqCounter) (package private) static org.languagetool.JLanguageTool.Mode(package private) static StringgetSQLDatetimeString(Calendar date) (package private) static UserLimitsgetUserLimits(Map<String, String> params, HTTPServerConfig config) (package private) static void(package private) static voidprint(String s, PrintStream outputStream) (package private) static voidsetAllowOrigin(com.sun.net.httpserver.HttpExchange httpExchange, String allowOriginUrl) (package private) static voidsetCommonHeaders(com.sun.net.httpserver.HttpExchange httpExchange, String contentType, String allowOriginUrl)
-
Constructor Details
-
ServerTools
private ServerTools()
-
-
Method Details
-
getLoggingInfo
-
getHttpUserAgent
@Nullable static @Nullable String getHttpUserAgent(com.sun.net.httpserver.HttpExchange httpExchange) -
getHttpReferrer
-
getSQLDatetimeString
-
print
-
print
-
setCommonHeaders
-
setAllowOrigin
-
getUserLimits
-
getMode
-