Class UrlBuilder
- java.lang.Object
- 
- com.aerisweather.aeris.communication.UrlBuilder
 
- 
- Direct Known Subclasses:
- AerisRequest
 
 public abstract class UrlBuilder extends Object Abstract UrlBuilder that takes care of some handling for each builder.
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringclientIdClient Id variable needed for the urlprotected StringclientSecretClient secret key needed for the urlprotected StringpackageNamePacakage name of the app
 - 
Constructor SummaryConstructors Constructor Description UrlBuilder()Main constructor that takes the context to grab R.string variables.UrlBuilder(String clientId, String clientSecret, String packageName)Another constructor to pass in the client id and client secret without using the R.string
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Stringbuild()Builds the full url of the request.protected StringgetLimit(int limit)StringgetOAuth()Appends the OAuth keys to the Url.protected StringgetPositionString(double lat, double lon)Get the position string for appending to the url.
 
- 
- 
- 
Method Detail- 
getOAuthpublic String getOAuth() Appends the OAuth keys to the Url.- Returns:
- oAuth key
 
 - 
getPositionStringprotected String getPositionString(double lat, double lon) Get the position string for appending to the url.- Parameters:
- lat- double
- lon- double
- Returns:
- String
 
 - 
getLimitprotected String getLimit(int limit) 
 - 
buildpublic abstract String build() Builds the full url of the request.- Returns:
- the String url for the request.
 
 
- 
 
-