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 protected
AerisBatchRequest()
protected
AerisBatchRequest(Action action, Parameter... params)
protected
AerisBatchRequest(Parameter... params)
protected
AerisBatchRequest(String id, Parameter... params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Builds the requestString
getRequests()
Constructs the requests into the proper format.void
setEndpoints(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:
build
in 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
-
-