
| Modifier and Type | Class and Description |
|---|---|
static class |
RuleConverter.ModeTrans
The different modes of file transfer.
|
static class |
RuleConverter.Order
All the possible ways to sort a list of rule objects.
|
| Modifier and Type | Method and Description |
|---|---|
static Rule |
nodeToNewRule(com.fasterxml.jackson.databind.node.ObjectNode object)
Converts the given
ObjectNode into a Rule object. |
static Rule |
nodeToUpdatedRule(com.fasterxml.jackson.databind.node.ObjectNode object,
Rule oldRule)
Returns the given
Rule object updated with the values defined in
the ObjectNode parameter. |
static com.fasterxml.jackson.databind.node.ObjectNode |
ruleToNode(Rule rule)
Converts the given
Rule object into an ObjectNode. |
public static com.fasterxml.jackson.databind.node.ObjectNode ruleToNode(Rule rule)
Rule object into an ObjectNode.rule - the host to convertpublic static Rule nodeToNewRule(com.fasterxml.jackson.databind.node.ObjectNode object)
ObjectNode into a Rule object.object - the ObjectNode to convertRestErrorException - If the given ObjectNode does not
represent a Rule object.public static Rule nodeToUpdatedRule(com.fasterxml.jackson.databind.node.ObjectNode object, Rule oldRule)
Rule 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.oldRule - the rule entry to update.RestErrorException - if the given ObjectNode does not
represent a Rule objectCopyright © 2009–2020 Waarp. All rights reserved.