Class SubscriptionCallHttpEndpoint
java.lang.Object
io.github.xezzon.zeroweb.call.internal.SubscriptionCallHttpEndpoint
订阅服务调用记录
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionCallHttpEndpoint(ISubscriptionService4Call subscriptionService, IThirdPartyAppService4Call thirdPartyAppService) 依赖注入 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte @NonNull []> forwardForSafe(@NotBlank String openapiCode, byte[] body, String accessKey, Instant timestamp, String signature, org.springframework.http.HttpHeaders headers, jakarta.servlet.http.HttpServletRequest request) 转发 GET 请求org.springframework.http.ResponseEntity<byte @NonNull []> forwardForUnsafe(@NotBlank String openapiCode, byte[] body, String accessKey, Instant timestamp, String signature, org.springframework.http.HttpHeaders headers, jakarta.servlet.http.HttpServletRequest request) 转发非 GET 请求
-
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:
- 响应内容
-