Interface ReturnValueHandler

All Known Implementing Classes:
BaseVoReturnValueHandler, LastReturnValueHandler, NullReturnValueHandler, StringReturnValueHandler, TemplateReturnValueHandler

public interface ReturnValueHandler
返回值处理器
Version:
0.0.1
Author:
scx567888
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(Object returnValue)
    是否能够处理
    void
    handle(Object returnValue, cool.scx.http.routing.RoutingContext routingContext)
    处理结果
  • Method Details

    • canHandle

      boolean canHandle(Object returnValue)
      是否能够处理
      Parameters:
      returnValue - result
      Returns:
      是否能够处理
    • handle

      void handle(Object returnValue, cool.scx.http.routing.RoutingContext routingContext) throws Exception
      处理结果
      Parameters:
      returnValue - result
      routingContext - context
      Throws:
      Exception - e