retrofit
Class Server

java.lang.Object
  extended by retrofit.Server
Direct Known Subclasses:
ChangeableServer

public class Server
extends Object

Represents an API endpoint URL and associated name. Callers should always consult the instance for the latest values rather than caching the returned values.

Author:
Bob Lee ([email protected])
See Also:
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

DEFAULT_NAME

public static final String DEFAULT_NAME
See Also:
Constant Field Values
Constructor Detail

Server

public Server(String apiUrl)
Create a server with the provided URL and default name.


Server

public Server(String apiUrl,
              String type)
Create a server with the provided URL and name.

Method Detail

getUrl

public String getUrl()
The base API URL.


getName

public String getName()
A name for differentiating between multiple API URLs.



Copyright © 2013 Square, Inc.. All Rights Reserved.