Package

wvlet.airframe

codec

Permalink

package codec

Visibility
  1. Public
  2. All

Type Members

  1. trait CodecErrorCode extends AnyRef

    Permalink
  2. sealed trait DataType extends AnyRef

    Permalink
  3. class EnumCodec[A] extends MessageCodec[A]

    Permalink

    A codec for Enum-like case objects that can be instantiated with unapply(String)

  4. case class GenericException(exceptionClass: String, message: String, stackTrace: Seq[GenericStackTraceElement] = Seq.empty, cause: Option[GenericException] = None) extends Throwable with Product with Serializable

    Permalink

    Generic representation of Throwable for RPC messaging and logging exception

  5. case class GenericStackTraceElement(className: String, methodName: String, fileName: Option[String], lineNumber: Int) extends Product with Serializable

    Permalink

    Generic stacktrace representation

  6. case class LazyCodec[A](surface: Surface, codecFactory: MessageCodecFactory) extends MessageCodec[A] with Product with Serializable

    Permalink

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

  7. trait MessageCodec[A] extends LogSupport

    Permalink
  8. class MessageCodecException extends Exception

    Permalink

  9. case class MessageCodecFactory(codecFinder: MessageCodecFinder = Compat.messageCodecFinder, mapOutput: Boolean = false) extends LogSupport with Product with Serializable

    Permalink

  10. trait MessageCodecFinder extends AnyRef

    Permalink

  11. case class MessageContext() extends Product with Serializable

    Permalink

    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.

  12. trait MessageValueCodec[A] extends MessageCodec[A]

    Permalink
  13. case class ObjectCodec[A](surface: Surface, paramCodec: Seq[MessageCodec[_]]) extends MessageCodec[A] with ObjectCodecBase with PackAsMapSupport[A] with LogSupport with Product with Serializable

    Permalink

  14. sealed trait ObjectCodecBase extends AnyRef

    Permalink
  15. case class ObjectMapCodec[A](surface: Surface, paramCodec: Seq[MessageCodec[_]]) extends MessageCodec[A] with ObjectCodecBase with PackAsMapSupport[A] with LogSupport with Product with Serializable

    Permalink

    ObjectCodec for generating map values.

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

  16. trait PackAsMapSupport[A] extends AnyRef

    Permalink
  17. class ParamListCodec extends MessageCodec[Seq[Any]] with LogSupport

    Permalink

    A generic codec for parameter lists: - array form: [v1, v2, ...] - map form: {k1:v1, k2:v2, ..}

  18. class StringUnapplyCodec[A] extends MessageCodec[A] with LogSupport

    Permalink

    A codec for Enum-like case objects that can be instantiated with unapply(String)

  19. case class UnionCodec(codecs: Seq[MessageCodec[_]]) extends MessageCodec[Union] with Product with Serializable

    Permalink

    Codec for union classes (e.g., A or B) This codec is necessary for defining OpenAPI's model classes

Value Members

  1. object CodecMacros

    Permalink

  2. object CollectionCodec

    Permalink
  3. object Compat

    Permalink

  4. object DataType

    Permalink

  5. object GenericException extends Serializable

    Permalink
  6. object INVALID_DATA extends CodecErrorCode with Product with Serializable

    Permalink
  7. object JDBCCodec extends LogSupport

    Permalink

  8. object JSONCodec extends MessageCodec[String]

    Permalink

    Codec for JSON String

  9. object JSONValueCodec extends MessageCodec[JSONValue]

    Permalink

    Codec for JSONValue

  10. object JavaInstantTimeCodec extends MessageCodec[Instant]

    Permalink

  11. object JavaStandardCodec

    Permalink

  12. object JavaTimeCodec

    Permalink

    Codec for java.time package

  13. object JavaUtilDateCodec extends MessageCodec[Date] with LogSupport

    Permalink
  14. object MISSING_PARAMETER extends CodecErrorCode with Product with Serializable

    Permalink
  15. object MessageCodec extends Serializable

    Permalink
  16. object MessageCodecFactory extends Serializable

    Permalink
  17. object MessageCodecFinder extends LogSupport

    Permalink
  18. object MetricsCodec

    Permalink

    Codecs for airframe-metrics

  19. object PrimitiveCodec

    Permalink

  20. object RawJsonCodec extends MessageCodec[Json]

    Permalink
  21. object ScalaStandardCodec

    Permalink

  22. object StandardCodec

    Permalink

    Standard codec collection

  23. object ThrowableCodec extends MessageCodec[Throwable]

    Permalink

    Codec for Exception (Throwable) classes

  24. object UUIDCodec extends MessageCodec[UUID]

    Permalink

Ungrouped