Class SubscriptionCallHttpEndpoint

java.lang.Object
io.github.xezzon.zeroweb.call.internal.SubscriptionCallHttpEndpoint

@RestController @RequestMapping("/call") public class SubscriptionCallHttpEndpoint extends Object
订阅服务调用记录
Author:
xezzon
  • Constructor Details

    • SubscriptionCallHttpEndpoint

      public SubscriptionCallHttpEndpoint(ISubscriptionService4Call subscriptionService, IThirdPartyAppService4Call thirdPartyAppService)
      依赖注入
      Parameters:
      subscriptionService - 订阅服务
      thirdPartyAppService - 第三方应用服务
  • Method Details

    • forwardForSafe

      @GetMapping("/{openapiCode}") public org.springframework.http.ResponseEntity<byte @NonNull []> forwardForSafe(@PathVariable @NotBlank @NotBlank String openapiCode, @RequestBody(required=false) byte[] body, @RequestHeader("X-Access-Key") String accessKey, @RequestHeader("X-Timestamp") Instant timestamp, @RequestHeader("X-Signature") String signature, @RequestHeader org.springframework.http.HttpHeaders headers, jakarta.servlet.http.HttpServletRequest request)
      转发 GET 请求
      Parameters:
      openapiCode - 对外接口编码
      body - 请求体
      accessKey - 用于标识一个第三方应用
      timestamp - 摘要生成时间
      signature - 请求体摘要
      headers - 请求头
      request - 请求信息
      Returns:
      响应内容
    • forwardForUnsafe

      @RequestMapping(value="/{openapiCode}", method={POST,PUT,DELETE,PATCH}) public org.springframework.http.ResponseEntity<byte @NonNull []> forwardForUnsafe(@PathVariable @NotBlank @NotBlank String openapiCode, @RequestBody(required=false) byte[] body, @RequestHeader("X-Access-Key") String accessKey, @RequestHeader("X-Timestamp") Instant timestamp, @RequestHeader("X-Signature") String signature, @RequestHeader org.springframework.http.HttpHeaders headers, jakarta.servlet.http.HttpServletRequest request)
      转发非 GET 请求
      Parameters:
      openapiCode - 对外接口编码
      body - 请求体
      accessKey - 用于标识一个第三方应用
      timestamp - 摘要生成时间
      signature - 请求体摘要
      headers - 请求头
      request - 请求信息
      Returns:
      响应内容