public class ClientUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static Logger |
getLogger()
Returns a logger.
|
protected static URL |
parseLink(JsonObject jsonObject)
Parses a JSON object into a URL.
|
static Map<String,URL> |
parseLinks(JsonObject jsonObject)
Parses a JSON object into a map of links.
|
static URL |
parseURL(String string)
Parses a string into a URL.
|
static UUID |
parseUUID(String string)
Parses a string into a UUID.
|
public static Logger getLogger()
public static UUID parseUUID(String string)
string - string that represents a UUIDUUID object, or null if the string is
nullIllegalArgumentException - if the string could not parsed as a
UUID.public static Map<String,URL> parseLinks(JsonObject jsonObject)
jsonObject - JSON objectprotected static URL parseLink(JsonObject jsonObject) throws MalformedURLException
jsonObject - JSON objectMalformedURLException - if the href value could not
be parsed as a URL.public static URL parseURL(String string) throws MalformedURLException
string - string that represents a URLURL object, or null if the string
is nullMalformedURLException - if the string could not parsed as a URL.Copyright © 2015 Nishimura Software Studio. All rights reserved.