Class AerisBatchRequest
- java.lang.Object
-
- com.aerisweather.aeris.communication.UrlBuilder
-
- com.aerisweather.aeris.communication.AerisRequest
-
- com.aerisweather.aeris.communication.AerisBatchRequest
-
- Direct Known Subclasses:
AerisLocBatchRequest
public class AerisBatchRequest extends AerisRequest
-
-
Field Summary
Fields Modifier and Type Field Description protected Endpoint[]endpoints-
Fields inherited from class com.aerisweather.aeris.communication.AerisRequest
action, debug, endpoint, id, lat, longitude, parameters, secureAccess
-
Fields inherited from class com.aerisweather.aeris.communication.UrlBuilder
clientId, clientSecret, packageName
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAerisBatchRequest()protectedAerisBatchRequest(Action action, Parameter... params)protectedAerisBatchRequest(Parameter... params)protectedAerisBatchRequest(String id, Parameter... params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Builds the requestStringgetRequests()Constructs the requests into the proper format.voidsetEndpoints(Endpoint... points)Sets the different Endpoints to get responses for.-
Methods inherited from class com.aerisweather.aeris.communication.AerisRequest
getLat, getLongitude, getParameters, isDebug, isSecureAccess, withDebugOutput, withSecureAccess
-
Methods inherited from class com.aerisweather.aeris.communication.UrlBuilder
getLimit, getOAuth, getPositionString
-
-
-
-
Field Detail
-
endpoints
protected Endpoint[] endpoints
-
-
Method Detail
-
setEndpoints
public void setEndpoints(Endpoint... points)
Sets the different Endpoints to get responses for. These each count as a different request toward the API.- Parameters:
points- Array of Endpoint calls to use in the request
-
build
public String build()
Builds the request- Overrides:
buildin classAerisRequest- Returns:
- the String url for the request.
-
getRequests
public String getRequests()
Constructs the requests into the proper format.- Returns:
- String of requests to add to the batch
-
-