public class ShortUrlClientService extends Object implements IShortUrlClientService
| Constructor and Description |
|---|
ShortUrlClientService() |
| Modifier and Type | Method and Description |
|---|---|
ShortUrlJsonResponse |
createShortener(String strUrl,
boolean bUseOnce,
javax.servlet.http.HttpServletRequest request)
create shortener Url
|
ShortUrlJsonResponse |
createShortener(String strUrl,
javax.servlet.http.HttpServletRequest request)
create shortener Url
|
boolean |
deleteShortener(String strKey,
javax.servlet.http.HttpServletRequest request)
Delete short url using short url key
|
void |
setServerBaseUrl(String _strServerUrl)
set serverUrl
|
public ShortUrlJsonResponse createShortener(String strUrl, javax.servlet.http.HttpServletRequest request)
createShortener in interface IShortUrlClientServicestrUrl - the urlrequest - the requestpublic ShortUrlJsonResponse createShortener(String strUrl, boolean bUseOnce, javax.servlet.http.HttpServletRequest request)
createShortener in interface IShortUrlClientServicestrUrl - the urlbUseOnce - true if the shortUrl can be used just one timerequest - the requestpublic boolean deleteShortener(String strKey, javax.servlet.http.HttpServletRequest request)
deleteShortener in interface IShortUrlClientServicestrKey - the sorturl keyrequest - the requestpublic void setServerBaseUrl(String _strServerUrl)
setServerBaseUrl in interface IShortUrlClientServiceCopyright © 2019 City of Paris. All rights reserved.