wvlet.airframe.codec
Type members
Classlikes
A codec for Enum-like case objects that can be instantiated with unapply(String)
A codec for Enum-like case objects that can be instantiated with unapply(String)
Generic representation of Throwable for RPC messaging and logging exception
Generic representation of Throwable for RPC messaging and logging exception
- Companion:
- object
Generic stacktrace representation
Generic stacktrace representation
For generating codec for recursive types.
For generating codec for recursive types.
For example, if type X has a recursion like X(name:String, child:Option[X]), LazyCodec will be used to generate a codec instance as MessageCodec[X](StringCodec, OptionCodec(LazyCodec[X])).
- Companion:
- object
MessageContext is used for passing the parsing configuration and the last value read by codec.
MessageContext is used for passing the parsing configuration and the last value read by codec.
For efficiency, it holds several primitive type values as local variables to avoid the boxing overhead.
ObjectCodec for generating map values. This is suited to JSON object generation
ObjectCodec for generating map values. This is suited to JSON object generation
If a class is extending PackSupport, pack(Packer) method will be used for serializing (packing) this object.
If a class is extending PackSupport, pack(Packer) method will be used for serializing (packing) this object.
For deserializing (unpacking) data of type A, define a package method unapply(string:String): Option[A].
In future, we may support unapply(u:Unpacker): Option[A] method
A generic codec for parameter lists:
A generic codec for parameter lists:
- array form: [v1, v2, ...]
- map form: {k1:v1, k2:v2, ..}
A codec for Enum-like case objects that can be instantiated with unapply(String)
A codec for Enum-like case objects that can be instantiated with unapply(String)
Codec for Exception (Throwable) classes
Codec for Exception (Throwable) classes
Codec for union classes (e.g., A or B) This codec is necessary for defining OpenAPI's model classes
Codec for union classes (e.g., A or B) This codec is necessary for defining OpenAPI's model classes