Class HttpGatewayClientCodec
- java.lang.Object
-
- io.scalecube.services.gateway.transport.http.HttpGatewayClientCodec
-
- All Implemented Interfaces:
GatewayClientCodec<io.netty.buffer.ByteBuf>
public final class HttpGatewayClientCodec extends Object implements GatewayClientCodec<io.netty.buffer.ByteBuf>
-
-
Constructor Summary
Constructors Constructor Description HttpGatewayClientCodec(io.scalecube.services.transport.api.DataCodec dataCodec)Constructor for codec which encode/decode client message to/fromByteBuf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.scalecube.services.api.ServiceMessagedecode(io.netty.buffer.ByteBuf encodedMessage)Decodes message represented byGatewayClientCodectype toServiceMessageobject.io.netty.buffer.ByteBufencode(io.scalecube.services.api.ServiceMessage message)EncodesServiceMessagetoGatewayClientCodectype.io.scalecube.services.transport.api.DataCodecgetDataCodec()Returns codec which is used to decode data object ofServiceMessage.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.scalecube.services.gateway.transport.GatewayClientCodec
decodeData
-
-
-
-
Method Detail
-
getDataCodec
public io.scalecube.services.transport.api.DataCodec getDataCodec()
Description copied from interface:GatewayClientCodecReturns codec which is used to decode data object ofServiceMessage.- Specified by:
getDataCodecin interfaceGatewayClientCodec<io.netty.buffer.ByteBuf>- Returns:
- data codec
- See Also:
GatewayClientCodec.decodeData(ServiceMessage, Type)
-
encode
public io.netty.buffer.ByteBuf encode(io.scalecube.services.api.ServiceMessage message)
Description copied from interface:GatewayClientCodecEncodesServiceMessagetoGatewayClientCodectype.- Specified by:
encodein interfaceGatewayClientCodec<io.netty.buffer.ByteBuf>- Parameters:
message- client message to encode- Returns:
- encoded message represented by
GatewayClientCodectype
-
decode
public io.scalecube.services.api.ServiceMessage decode(io.netty.buffer.ByteBuf encodedMessage)
Description copied from interface:GatewayClientCodecDecodes message represented byGatewayClientCodectype toServiceMessageobject.- Specified by:
decodein interfaceGatewayClientCodec<io.netty.buffer.ByteBuf>- Parameters:
encodedMessage- message to decode- Returns:
- decoded message represented by
ServiceMessagetype
-
-