wvlet.airframe.codec

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object INVALID_DATA.type
object MISSING_PARAMETER.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Compat extends CompatBase

Attributes

Supertypes
trait CompatBase
class Object
trait Matchable
class Any
Self type
Compat.type
trait CompatBase

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Compat.type
sealed trait DataType

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ANY.type
trait NamedType
object BINARY.type
object BOOLEAN.type
object FLOAT.type
object INTEGER.type
object JSON.type
object NIL.type
object STRING.type
object TIMESTAMP.type
class RecordType
class ARRAY
class MAP
class UNION
Show all
object DataType

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
DataType.type
class EnumCodec[A](enumSurface: EnumSurface) extends MessageCodec[A]

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)

Attributes

Supertypes
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
case class GenericException(exceptionClass: String, message: String, stackTrace: Seq[GenericStackTraceElement], cause: Option[GenericException]) extends Throwable

Generic representation of Throwable for RPC messaging and logging exception

Generic representation of Throwable for RPC messaging and logging exception

Attributes

Companion
object
Supertypes
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class GenericStackTraceElement(className: String, methodName: String, fileName: Option[String], lineNumber: Int)

Generic stacktrace representation

Generic stacktrace representation

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object INVALID_DATA extends CodecErrorCode

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object JDBCCodec extends LogSupport

Attributes

Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
JDBCCodec.type
object JSONCodec extends MessageCodec[String]

Codec for JSON String

Codec for JSON String

Attributes

Supertypes
trait MessageCodec[String]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
JSONCodec.type
object JSONValueCodec extends MessageCodec[JSONValue]

Codec for JSONValue

Codec for JSONValue

Attributes

Supertypes
trait MessageCodec[JSONValue]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object JavaInstantTimeCodec extends MessageCodec[Instant]

Attributes

Supertypes
trait MessageCodec[Instant]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object JavaTimeCodec

Codec for java.time package

Codec for java.time package

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object JavaUtilDateCodec extends MessageCodec[Date], LogSupport

Attributes

Supertypes
trait MessageCodec[Date]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case class LazyCodec[A](surface: Surface, codecFactory: MessageCodecFactory) extends MessageCodec[A]

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])).

Attributes

Supertypes
trait Product
trait Equals
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
case object MISSING_PARAMETER extends CodecErrorCode

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
trait MessageCodec[A] extends LogSupport

Attributes

Companion
object
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class IndexedSeqCodec[A]
class JavaListCodec[A]
class ListCodec[A]
class MapCodecBase[A, B, MapType]
class JavaMapCodec[A, B]
class ListMapCodec[A, B]
class MapCodec[A, B]
class SeqCodec[A]
class EnumCodec[A]
object BigDecimalCodec.type
object JavaSqlArrayCodec.type
object JavaSqlDateCodec.type
object JavaSqlTimeCodec.type
object JavaSqlTimestampCodec.type
object JSONCodec.type
object JSONValueCodec.type
object JavaInstantTimeCodec.type
object FileCodec.type
class JavaEnumCodec[A]
object ZonedDateTimeCodec.type
object JavaUtilDateCodec.type
class LazyCodec[A]
object CountCodec.type
object DataSizeCodec.type
object ElapsedTimeCodec.type
class ObjectCodec[A]
class ObjectMapCodec[A]
object PrefixedULIDCodec.type
object AnyArrayCodec.type
class AnyCodec
object BooleanArrayCodec.type
object ByteArrayCodec.type
object CharArrayCodec.type
object DoubleArrayCodec.type
object FloatArrayCodec.type
object IntArrayCodec.type
object LongArrayCodec.type
trait PrimitiveCodec[A]
object BigIntCodec.type
object BigIntegerCodec.type
object BooleanCodec.type
object ByteCodec.type
object CharCodec.type
object DoubleCodec.type
object FloatCodec.type
object IntCodec.type
object LongCodec.type
object ShortCodec.type
object StringCodec.type
object UnitCodec.type
object RawMsgPackCodec.type
object ShortArrayCodec.type
object StringArrayCodec.type
object ValueCodec.type
object RawJsonCodec.type
class EitherCodec[A, B]
class OptionCodec[A]
class TupleCodec
object ThrowableCodec.type
object ULIDCodec.type
object UUIDCodec.type
class UnionCodec
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class MessageCodecException(val errorCode: CodecErrorCode, val codec: MessageCodec[_], val message: String) extends Exception

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class MessageCodecFactory(codecFinder: MessageCodecFinder, mapOutput: Boolean) extends MessageCodecFactoryBase, LogSupport

Attributes

Companion
object
Supertypes
trait Product
trait Equals
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JVMMessageCodecFinder.type
object empty.type
object MessageCodecFinder extends LogSupport

Attributes

Companion
trait
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case class MessageContext()

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.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait MessageValueCodec[A] extends MessageCodec[A]

Attributes

Supertypes
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
object MetricsCodec

Codecs for airframe-metrics

Codecs for airframe-metrics

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class ObjectCodec[A](surface: Surface, paramCodec: Seq[MessageCodec[_]]) extends MessageCodec[A], ObjectCodecBase, PackAsMapSupport[A], LogSupport

Attributes

Supertypes
trait Product
trait Equals
trait PackAsMapSupport[A]
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed trait ObjectCodecBase

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ObjectCodec[A]
class ObjectMapCodec[A]
case class ObjectMapCodec[A](surface: Surface, paramCodec: Seq[MessageCodec[_]]) extends MessageCodec[A], ObjectCodecBase, PackAsMapSupport[A], LogSupport

ObjectCodec for generating map values. This is suited to JSON object generation

ObjectCodec for generating map values. This is suited to JSON object generation

Attributes

Supertypes
trait Product
trait Equals
trait PackAsMapSupport[A]
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
trait PackAsMapSupport[A]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ObjectCodec[A]
class ObjectMapCodec[A]
Self type
trait PackSupport

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

Attributes

Supertypes
class Object
trait Matchable
class Any
class ParamListCodec(name: String, params: IndexedSeq[Parameter], paramCodec: Seq[MessageCodec[_]], methodOwner: Option[Any]) extends MessageCodec[Seq[Any]], LogSupport

A generic codec for parameter lists:

A generic codec for parameter lists:

  • array form: [v1, v2, ...]
  • map form: {k1:v1, k2:v2, ..}

Attributes

Supertypes
trait MessageCodec[Seq[Any]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
object PrefixedULIDCodec extends MessageCodec[PrefixedULID]

Attributes

Supertypes
trait MessageCodec[PrefixedULID]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object RawJsonCodec extends MessageCodec[Json]

Attributes

Supertypes
trait MessageCodec[Json]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object ScalaCompat

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object StandardCodec

Standard codec collection

Standard codec collection

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class StringUnapplyCodec[A](codec: Surface) extends MessageCodec[A], LogSupport

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)

Attributes

Supertypes
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
object ThrowableCodec extends MessageCodec[Throwable]

Codec for Exception (Throwable) classes

Codec for Exception (Throwable) classes

Attributes

Supertypes
trait MessageCodec[Throwable]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object ULIDCodec extends MessageCodec[ULID]

Attributes

Supertypes
trait MessageCodec[ULID]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
ULIDCodec.type
object UUIDCodec extends MessageCodec[UUID]

Attributes

Supertypes
trait MessageCodec[UUID]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
UUIDCodec.type
case class UnionCodec(codecs: Seq[MessageCodec[_]]) extends MessageCodec[Union]

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

Attributes

Supertypes
trait Product
trait Equals
trait MessageCodec[Union]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all