public final class JsonUtils extends Object
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
deserializeRequest(io.netty.handler.codec.http.HttpRequest request)
Deserializes a request's content as an ObjectNode
|
static String |
nodeToString(com.fasterxml.jackson.databind.node.ObjectNode object)
Converts an ObjectNode into a String.
|
public static String nodeToString(com.fasterxml.jackson.databind.node.ObjectNode object)
object
- the ObjectNode to convertInternalServerErrorException
- if an unexpected error
occurredpublic static com.fasterxml.jackson.databind.node.ObjectNode deserializeRequest(io.netty.handler.codec.http.HttpRequest request)
request
- the request to deserializeRestErrorException
- If the content is not a valid JSON
object.NotSupportedException
- If the content type is not JSON.InternalServerErrorException
- if an unexpected error
occurredCopyright © 2009–2020 Waarp. All rights reserved.