public class ExpandResponse extends GooGlResponse
{
"kind": "urlshortener#url",
"id": "http://goo.gl/fbsS",
"longUrl": "http://www.google.com/",
"status": "OK"
}
| Modifier and Type | Field and Description |
|---|---|
protected String |
kind |
protected String |
longUrl |
protected String |
shortUrl |
protected GooGlStatus |
status |
error| Constructor and Description |
|---|
ExpandResponse() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKind() |
String |
getLongUrl()
longUrl is the long URL to which it expands.
|
String |
getShortUrl() |
GooGlStatus |
getStatus()
status is "OK" for most URLs.
|
void |
setKind(String kind) |
void |
setLongUrl(String longUrl) |
void |
setShortUrl(String shortUrl) |
void |
setStatus(GooGlStatus status) |
String |
toString() |
getError, hasErrors, setErrorprotected String shortUrl
protected String longUrl
protected GooGlStatus status
protected String kind
public String getShortUrl()
public void setShortUrl(String shortUrl)
public String getLongUrl()
public void setLongUrl(String longUrl)
public GooGlStatus getStatus()
public void setStatus(GooGlStatus status)
public String getKind()
public void setKind(String kind)
Copyright © 2011-2013. All Rights Reserved.