|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.urlshortener.DummyURLShortener
public class DummyURLShortener
Dummy implementation that returns the same URL.
Field Summary | |
---|---|
static String |
PARAMETER_URL
This is the URL parameter to be used in API URLs. |
Constructor Summary | |
---|---|
DummyURLShortener()
|
Method Summary | |
---|---|
String |
expand(String url)
Expands the given URL. |
protected String |
getApiURL()
Returns the URL shortener API URL to be used. |
String |
shorten(String url)
Shortens a given URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAMETER_URL
Constructor Detail |
---|
public DummyURLShortener()
Method Detail |
---|
public String shorten(String url) throws PortalException
IURLShortener
shorten
in interface IURLShortener
url
- the URL to be shortened.
PortalException
- if some error occur in shortening process.public String expand(String url) throws PortalException
url
- the URL to be expanded.
PortalException
protected String getApiURL() throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |