Package org.languagetool.server
Class ServerTools
java.lang.Object
org.languagetool.server.ServerTools
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static @Nullable String
getHttpReferrer
(com.sun.net.httpserver.HttpExchange httpExchange) (package private) static @Nullable String
getHttpUserAgent
(com.sun.net.httpserver.HttpExchange httpExchange) (package private) static @NotNull String
getLoggingInfo
(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 String
getSQLDatetimeString
(Calendar date) (package private) static UserLimits
getUserLimits
(Map<String, String> params, HTTPServerConfig config) (package private) static void
(package private) static void
print
(String s, PrintStream outputStream) (package private) static void
setAllowOrigin
(com.sun.net.httpserver.HttpExchange httpExchange, String allowOriginUrl) (package private) static void
setCommonHeaders
(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
-