Constructor and Description |
---|
FrameAggregator(int maxAggregatedLength)
Construct a Web Socket frame aggregator.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ISession session,
Frame data,
List<Frame> out)
Decodes data from one type to another one.
|
Class<Frame> |
getInboundType()
Returns the type of the accepted inbound objects.
|
Class<Frame> |
getOutboundType()
Returns the type of the produced outbound objects.
|
public FrameAggregator(int maxAggregatedLength)
maxAggregatedLength
- maximum length of a aggregated frame's payload
data. Setting it to an appropriate value can
prevent from denial of service attackspublic Class<Frame> getInboundType()
ICodec
getInboundType
in interface ICodec<Frame,Frame>
public Class<Frame> getOutboundType()
ICodec
getOutboundType
in interface ICodec<Frame,Frame>
public void decode(ISession session, Frame data, List<Frame> out) throws Exception
IDecoder
Decoders that do not produce an output (i.e. the O parameter is
Void
) cannot change the object passed as the data
argument. They should not also store it for future use as its state can
be changed.
The above limitations regarding the data
argument do not apply to
decoders that produce an output.
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.