public final class RestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Locale |
getLocale(io.netty.handler.codec.http.HttpRequest request)
Returns the language of the given request.
|
static boolean |
stringToBoolean(String string)
Converts a String into its' corresponding boolean value.
|
public static Locale getLocale(io.netty.handler.codec.http.HttpRequest request)
request
- the HTTP requestpublic static boolean stringToBoolean(String string)
string
- the String to convertIllegalArgumentException
- If the String does not represent
a valid boolean value.Copyright © 2009–2020 Waarp. All rights reserved.