JoiningQRCodeWebPageProvider
@Controller
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + JOINING_QRCODES_KEY")
The JoiningQRCodeWebPageProvider
class is useful to provide the dedicated web page of a JoiningQRCode and manage the invalid accesses
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Properties
Link copied to clipboard
API_IPIFY_ORG_ENDPOINT
the endpoint to get the current ip address where the server is runningLink copied to clipboard
codesHelper
helper to manage the JoiningQRCode database operationsLink copied to clipboard
INVALID_QR_CODE_PAGE
the page when the QRCode requested is not validLink copied to clipboard
QR_CODE_BACKGROUND
the background color to apply to the QR codeLink copied to clipboard
TEMP_QR_FILE
the pathname for the temporary QRCode fileFunctions
Link copied to clipboard
Method to format and return the INVALID_QR_CODE_PAGE due the link expiration or the not existing of that link
Link copied to clipboard
Method to get the current server details
Link copied to clipboard
@GetMapping(path = "/{" + IDENTIFIER_KEY + "}")
Method to get a web dedicated page for a JoiningQRCode
Link copied to clipboard
private open fun qrcodePage(joiningQRCode: JoiningQRCode, model: Model, request: HttpServletRequest): String
Method to format and return the JOIN_CODE_KEY related page