Interface EROSubobjectRegistry
-
- All Known Implementing Classes:
SimpleEROSubobjectRegistry
public interface EROSubobjectRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubobjectContainer
parseSubobject(int subobjectType, io.netty.buffer.ByteBuf buffer, boolean loose)
Finds parser for given subobject type in the registry.void
serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
-
-
-
Method Detail
-
parseSubobject
SubobjectContainer parseSubobject(int subobjectType, io.netty.buffer.ByteBuf buffer, boolean loose) throws RSVPParsingException
Finds parser for given subobject type in the registry. Delegates parsing to found parser.- Parameters:
subobjectType
- subobject type, key in parser registrybuffer
- subobject wrapped in ByteBufloose
- ERO specific common field- Returns:
- null if the parser for this subobject could not be found
- Throws:
RSVPParsingException
- if the parsing did not succeed
-
serializeSubobject
void serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject. Delegates parsing to found serializer.- Parameters:
subobject
- to be parsedbuffer
- buffer where the serialized subobject will be parsed
-
-