NOISIF Platform
Toggle table of contents
80ccce4
java
Target filter
java
Switch theme
Search in API
Skip to content
NOISIF Platform
NSL Codec
/
xyz.noisif.nsl.codec.envelope
/
EnvelopeSerializer
Envelope
Serializer
interface
EnvelopeSerializer
<
T
>
:
UnifiedMessageCodec
Inheritors
JsonEnvelopeSerializer
ProtobufEnvelopeSerializer
Members
Functions
accept
Raw
Link copied to clipboard
abstract
fun
acceptRaw
(
rawPayload
:
Array
<
Byte
>
,
visitor
:
EncodedPayloadVisitor
)
get
Base
Format
Link copied to clipboard
abstract
fun
getBaseFormat
(
)
:
SerializerFormat
get
Codec
Data
Type
Link copied to clipboard
abstract
fun
getCodecDataType
(
)
:
DataType
get
Format
Link copied to clipboard
open
fun
getFormat
(
)
:
SerializerFormat
serialize
And
Accept
Envelope
Link copied to clipboard
abstract
fun
serializeAndAcceptEnvelope
(
opCode
:
OpCode
,
data
:
Any
,
visitor
:
EncodedPayloadVisitor
)
serialize
Envelope
As
Bytes
Link copied to clipboard
abstract
fun
serializeEnvelopeAsBytes
(
opCode
:
OpCode
,
payload
:
Any
)
:
Array
<
Byte
>
serialize
Envelope
As
String
Link copied to clipboard
open
fun
serializeEnvelopeAsString
(
opCode
:
OpCode
,
payload
:
Any
)
:
String
serialize
For
Session
Link copied to clipboard
abstract
fun
serializeForSession
(
opCode
:
OpCode
,
payload
:
Any
)
:
T
unwrap
Link copied to clipboard
abstract
fun
unwrap
(
payload
:
Array
<
Byte
>
,
typeResolver
:
(
Integer
)
->
Class
<
out
Any
>
)
:
MessageEnvelope
<
out
Any
>
open
fun
unwrap
(
payload
:
String
,
typeResolver
:
(
Integer
)
->
Class
<
out
Any
>
)
:
MessageEnvelope
<
out
Any
>