public class QRCodeController extends Object implements Controller
Constructor and Description |
---|
QRCodeController() |
Modifier and Type | Method and Description |
---|---|
void |
onError(WebContext ctx,
sirius.kernel.health.HandledException error)
In case processing a request via a method fails (throws an exception), this method will be called.
|
void |
qr(WebContext ctx)
Creates an QR code for the given content.
|
public void onError(WebContext ctx, sirius.kernel.health.HandledException error)
Controller
This provides a convenient way to render a "fallback" page like a list view, if a specialized details view or something thereof fails.
onError
in interface Controller
ctx
- the context containing the requesterror
- the error which occurredpublic void qr(WebContext ctx) throws Exception
The parameter content determines the contents of the qr code. The parameters with and height its dimensions.
ctx
- the current requestException
- in case an error occures when generatng the qr codeCopyright © 2018. All rights reserved.