|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object retrofit.Server
public class Server
Represents an API endpoint URL and associated name. Callers should always consult the instance for the latest values rather than caching the returned values.
ChangeableServer
Field Summary | |
---|---|
static String |
DEFAULT_NAME
|
Constructor Summary | |
---|---|
Server(String apiUrl)
Create a server with the provided URL and default name. |
|
Server(String apiUrl,
String type)
Create a 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_NAME
Constructor Detail |
---|
public Server(String apiUrl)
public Server(String apiUrl, String type)
Method Detail |
---|
public String getUrl()
public String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |