Class HessianEncoder

java.lang.Object
com.alibaba.spring.boot.rsocket.hessian.HessianCodecSupport
com.alibaba.spring.boot.rsocket.hessian.HessianEncoder
All Implemented Interfaces:
org.springframework.core.codec.Encoder<Object>

public class HessianEncoder extends HessianCodecSupport implements org.springframework.core.codec.Encoder<Object>
Hessian encoder
Author:
leijuan
  • Field Summary

    Fields inherited from class com.alibaba.spring.boot.rsocket.hessian.HessianCodecSupport

    HESSIAN_MIME_TYPE, HESSIAN_MIME_TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canEncode(@NotNull org.springframework.core.ResolvableType elementType, org.springframework.util.MimeType mimeType)
     
    @NotNull reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>
    encode(@NotNull org.reactivestreams.Publisher<?> inputStream, @NotNull org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType elementType, org.springframework.util.MimeType mimeType, Map<String,Object> hints)
     
    @NotNull org.springframework.core.io.buffer.DataBuffer
    encodeValue(Object value, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType valueType, org.springframework.util.MimeType mimeType, Map<String,Object> hints)
     
    @NotNull List<org.springframework.util.MimeType>
     

    Methods inherited from class com.alibaba.spring.boot.rsocket.hessian.HessianCodecSupport

    decode, encode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.codec.Encoder

    getEncodableMimeTypes
  • Constructor Details

    • HessianEncoder

      public HessianEncoder()
  • Method Details

    • canEncode

      public boolean canEncode(@NotNull @NotNull org.springframework.core.ResolvableType elementType, org.springframework.util.MimeType mimeType)
      Specified by:
      canEncode in interface org.springframework.core.codec.Encoder<Object>
    • encode

      @NotNull public @NotNull reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(@NotNull @NotNull org.reactivestreams.Publisher<?> inputStream, @NotNull @NotNull org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType elementType, org.springframework.util.MimeType mimeType, Map<String,Object> hints)
      Specified by:
      encode in interface org.springframework.core.codec.Encoder<Object>
    • encodeValue

      @NotNull public @NotNull org.springframework.core.io.buffer.DataBuffer encodeValue(Object value, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType valueType, org.springframework.util.MimeType mimeType, Map<String,Object> hints)
      Specified by:
      encodeValue in interface org.springframework.core.codec.Encoder<Object>
    • getEncodableMimeTypes

      @NotNull public @NotNull List<org.springframework.util.MimeType> getEncodableMimeTypes()
      Specified by:
      getEncodableMimeTypes in interface org.springframework.core.codec.Encoder<Object>