@RestController
public class CheckSettlementController
extends java.lang.Object
Constructor and Description |
---|
CheckSettlementController() |
Modifier and Type | Method and Description |
---|---|
SettlementResponse |
checkSettlement(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Main controller action checking settlement for a generated invoice token set in header wih name
'Payment'.
|
org.springframework.http.ResponseEntity<java.lang.Object> |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception e)
Exception handler for this controller.
|
@RequestMapping(value="${paywall.settlement.url:/paywall/api/checkSettlement}") public SettlementResponse checkSettlement(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- the related http request.response
- the related http response.@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception e)
request
- the related http request.response
- the related http response.e
- the related exception