corda / net.corda.client.jackson

Package net.corda.client.jackson

Utilities and serialisers for working with JSON representations of basic types. This adds Jackson support for the java.time API, some core types, and Kotlin data classes.

Types

JacksonSupport

object JacksonSupport

Utilities and serialisers for working with JSON representations of basic types. This adds Jackson support for the java.time API, some core types, and Kotlin data classes.

StringToClassParser

class StringToClassParser<T>

This class parses strings in a format designed for human usability into objects usually to support representation of a query object pattern. The strings accepted by this class are a minor variant of Yaml and can be easily typed at a command line. Intended use cases include things like queries in the Corda shell.

StringToMethodCallParser

open class StringToMethodCallParser<in T : Any>

This class parses strings in a format designed for human usability into ParsedMethodCall objects representing a ready-to-invoke call on the given target object. The strings accepted by this class are a minor variant of Yaml and can be easily typed at a command line. Intended use cases include things like the Corda shell, text-based RPC dispatch, simple scripting and so on.

Functions

getOrReport

fun <T> <ERROR CLASS><T>.getOrReport(out: PrintWriter?): T?

Gets the value from the Try object if that contains successful result. In case of the failure it'll returns null and report using the provided PrintWriter or trow the exception if the PrintWriter is null