Interface DeeplinkUrlService
-
- All Known Implementing Classes:
DeeplinkUrlServiceImpl
public interface DeeplinkUrlServiceThe Interface DeeplinkUrlService. Service responsible for generating URLs for use with barcodes.- Spring Bean ID:
- deeplinkUrlService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDeeplinkUrlService.LongUrlInfoThe Class LongUrlInfo container for generated URL and forward or redirect info
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgenerateShortUrl(DeeplinkUrlModel deeplinkUrlModel, java.lang.Object contextObject)Generate short url.DeeplinkUrlService.LongUrlInfogenerateUrl(java.lang.String barcodeToken)Generate long url.java.lang.StringparseTemplate(java.lang.String template, org.apache.velocity.VelocityContext context)Parses the template.
-
-
-
Method Detail
-
generateUrl
DeeplinkUrlService.LongUrlInfo generateUrl(java.lang.String barcodeToken)
Generate long url.- Parameters:
barcodeToken- the barcode token- Returns:
- the LongUrlInfo object
-
generateShortUrl
java.lang.String generateShortUrl(DeeplinkUrlModel deeplinkUrlModel, java.lang.Object contextObject)
Generate short url.- Parameters:
deeplinkUrlModel- the deeplink url modelcontextObject- the context object- Returns:
- the string
-
parseTemplate
java.lang.String parseTemplate(java.lang.String template, org.apache.velocity.VelocityContext context)Parses the template.- Parameters:
template- the templatecontext- the context- Returns:
- the string
-
-