Package org.pkl.core.messaging
Class BaseMessagePackDecoder
java.lang.Object
org.pkl.core.messaging.AbstractMessagePackDecoder
org.pkl.core.messaging.BaseMessagePackDecoder
- All Implemented Interfaces:
MessageDecoder
-
Field Summary
Fields inherited from class org.pkl.core.messaging.AbstractMessagePackDecoder
unpacker -
Constructor Summary
ConstructorsConstructorDescriptionBaseMessagePackDecoder(InputStream stream) BaseMessagePackDecoder(org.msgpack.core.MessageUnpacker unpacker) -
Method Summary
Modifier and TypeMethodDescriptiondecodeMessage(Message.Type msgType, Map<org.msgpack.value.Value, org.msgpack.value.Value> map) protected static @Nullable Messages.ModuleReaderSpecunpackModuleReaderSpec(@Nullable org.msgpack.value.Value value) protected static @Nullable List<PathElement> unpackPathElements(Map<org.msgpack.value.Value, org.msgpack.value.Value> map, String key) protected static @Nullable Messages.ResourceReaderSpecunpackResourceReaderSpec(@Nullable org.msgpack.value.Value value) Methods inherited from class org.pkl.core.messaging.AbstractMessagePackDecoder
decode, get, getNullable, unpackBoolean, unpackByteArray, unpackInt, unpackListOrNull, unpackLong, unpackLongOrNull, unpackLongOrNull, unpackString, unpackStringListOrNull, unpackStringListOrNull, unpackStringMapOrNull, unpackStringMapOrNull, unpackStringOrNull, unpackStringOrNull
-
Constructor Details
-
BaseMessagePackDecoder
public BaseMessagePackDecoder(org.msgpack.core.MessageUnpacker unpacker) -
BaseMessagePackDecoder
-
-
Method Details
-
decodeMessage
@Nullable protected @Nullable Message decodeMessage(Message.Type msgType, Map<org.msgpack.value.Value, org.msgpack.value.Value> map) throws DecodeException, URISyntaxException- Specified by:
decodeMessagein classAbstractMessagePackDecoder- Throws:
DecodeExceptionURISyntaxException
-
unpackModuleReaderSpec
@Nullable protected static @Nullable Messages.ModuleReaderSpec unpackModuleReaderSpec(@Nullable @Nullable org.msgpack.value.Value value) throws DecodeException - Throws:
DecodeException
-
unpackResourceReaderSpec
@Nullable protected static @Nullable Messages.ResourceReaderSpec unpackResourceReaderSpec(@Nullable @Nullable org.msgpack.value.Value value) throws DecodeException - Throws:
DecodeException
-
unpackPathElements
@Nullable protected static @Nullable List<PathElement> unpackPathElements(Map<org.msgpack.value.Value, org.msgpack.value.Value> map, String key) throws DecodeException- Throws:
DecodeException
-