
| Modifier and Type | Class and Description |
|---|---|
static class |
HostConverter.Order
Represents all the possible ways to sort a list of host objects.
|
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
hostToNode(Host host)
Converts the given
Host object into an ObjectNode. |
static Host |
nodeToNewHost(com.fasterxml.jackson.databind.node.ObjectNode object)
Converts the given
ObjectNode into a Host object. |
static Host |
nodeToUpdatedHost(com.fasterxml.jackson.databind.node.ObjectNode object,
Host oldHost)
Returns the given
Host object updated with the values defined in
the ObjectNode parameter. |
public static com.fasterxml.jackson.databind.node.ObjectNode hostToNode(Host host)
Host object into an ObjectNode.host - the host to convertpublic static Host nodeToNewHost(com.fasterxml.jackson.databind.node.ObjectNode object)
ObjectNode into a Host object.object - the ObjectNode to convertRestErrorException - if the given ObjectNode does not
represent a Host objectInternalServerErrorException - if an unexpected error
occurredpublic static Host nodeToUpdatedHost(com.fasterxml.jackson.databind.node.ObjectNode object, Host oldHost)
Host object updated with the values defined in
the ObjectNode parameter.
All fields missing in the JSON object will stay unchanged in the updated
host entry.object - the ObjectNode to convert.oldHost - the host entry to update.RestErrorException - if the given ObjectNode does not
represent a Host objectInternalServerErrorException - if an unexpected error
occurredCopyright © 2009–2020 Waarp. All rights reserved.