Features

  • Two types are supported by loki interceptors: sending interceptors and listening interceptors
  • Support for custom filters
  • The user can realize his own unified business processing, such as encrypted message sending and receiving and decryption of messages.

Using the Spring Scanning Instance to Implement the PipelineProcess Interface

PipelineProcess Interface

Method NameRequest Parameter TypesReturn parameter typeRemarks
supportPipelineContextbooleanThe user determines whether the current filter is effective, return true is supported and false is not supported
order-LongGet sorting, smaller comes first
processPipelineContext-Filter processing logic

PipelineContext

Parameter nameTypesRemarks
needBreakbooleanWhether to terminate the filter chain
codeStringType encodings
modelGenericsIntercepted content