|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object retrofit.Server retrofit.ChangeableServer
public class ChangeableServer
A Server
whose URL and name can be changed at runtime.
Field Summary |
---|
Fields inherited from class retrofit.Server |
---|
DEFAULT_NAME |
Constructor Summary | |
---|---|
ChangeableServer(String url)
Create a changeable server with the provided URL and default name. |
|
ChangeableServer(String url,
String name)
Create a changeable server with the provided URL and name. |
Method Summary | |
---|---|
String |
getName()
A name for differentiating between multiple API URLs. |
String |
getUrl()
The base API URL. |
void |
update(String url)
Update the URL returned by getUrl() . |
void |
update(String url,
String name)
Update the URL and name returned by getUrl() and getName() , respectively. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeableServer(String url)
public ChangeableServer(String url, String name)
Method Detail |
---|
public void update(String url)
getUrl()
.
public void update(String url, String name)
getUrl()
and getName()
, respectively.
public String getUrl()
Server
getUrl
in class Server
public String getName()
Server
getName
in class Server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |