public class CountryStateService extends Object
| Constructor and Description |
|---|
CountryStateService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
List<RestCountryState> |
all()
All
This operation returns all states of all countries.
|
List<RestCountryState> |
all(Map<String,Object> params)
All
This operation returns all states of all countries.
|
com.google.api.client.http.HttpResponse |
allForHttpResponse() |
com.google.api.client.http.HttpResponse |
allForHttpResponse(Map<String,Object> params) |
List<RestCountryState> |
country(String code)
Find by Country
This operation returns all states for a given country.
|
List<RestCountryState> |
country(String code,
Map<String,Object> params)
Find by Country
This operation returns all states for a given country.
|
com.google.api.client.http.HttpResponse |
countryForHttpResponse(String code) |
com.google.api.client.http.HttpResponse |
countryForHttpResponse(String code,
Map<String,Object> params) |
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public CountryStateService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<RestCountryState> all() throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<RestCountryState> all(Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse allForHttpResponse()
throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse allForHttpResponse(Map<String,Object> params) throws IOException
IOExceptionpublic List<RestCountryState> country(String code) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
code - The country code in ISO code two letter format for which all states should be returned.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<RestCountryState> country(String code, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
code - The country code in ISO code two letter format for which all states should be returned.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse countryForHttpResponse(String code) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countryForHttpResponse(String code, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2023. All rights reserved.