Class LastReturnValueHandler

java.lang.Object
cool.scx.web.return_value_handler.LastReturnValueHandler
All Implemented Interfaces:
ReturnValueHandler

public final class LastReturnValueHandler extends Object implements ReturnValueHandler
最后的 返回值处理器
Version:
1.11.8
Author:
scx567888
  • Constructor Details

    • LastReturnValueHandler

      public LastReturnValueHandler()
  • Method Details

    • canHandle

      public boolean canHandle(Object returnValue)
      Description copied from interface: ReturnValueHandler
      是否能够处理
      Specified by:
      canHandle in interface ReturnValueHandler
      Parameters:
      returnValue - result
      Returns:
      是否能够处理
    • handle

      public void handle(Object returnValue, cool.scx.http.routing.RoutingContext routingContext) throws com.fasterxml.jackson.core.JsonProcessingException
      Description copied from interface: ReturnValueHandler
      处理结果
      Specified by:
      handle in interface ReturnValueHandler
      Parameters:
      returnValue - result
      routingContext - context
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException