Package com.myjeeva.digitalocean.impl
Class ApiRequest
java.lang.Object
com.myjeeva.digitalocean.impl.ApiRequest
Represents DigitalOcean API Request details
- Since:
- v2.0
- Author:
- Jeevanandam M. (jeeva@myjeeva.com)
-
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorApiRequest(ApiAction apiAction) ConstructorApiRequest(ApiAction apiAction, Integer pageNo, Integer perPage) ConstructorConstructorApiRequest(ApiAction apiAction, Object data) ConstructorApiRequest(ApiAction apiAction, Object[] pathParams) ConstructorApiRequest(ApiAction apiAction, Object[] pathParams, Integer pageNo, Integer perPage) ConstructorApiRequest(ApiAction apiAction, Object data, Object[] pathParams) ConstructorApiRequest(ApiAction apiAction, Object data, Object[] pathParams, Integer pageNo, Map<String, String> queryParams, Integer perPage) Constructor -
Method Summary
Modifier and TypeMethodDescriptionClass<?> getClazz()getData()getPath()Object[]voidsetApiAction(ApiAction apiAction) voidvoidvoidsetPathParams(Object[] pathParams) voidsetPerPage(Integer perPage) voidsetQueryParams(Map<String, String> queryParams)
-
Constructor Details
-
ApiRequest
public ApiRequest()Default Constructor -
ApiRequest
Constructor- Parameters:
apiAction- a info about api request
-
ApiRequest
Constructor- Parameters:
apiAction- a info about api requestpathParams- a api request path variable value(s)
-
ApiRequest
Constructor- Parameters:
apiAction- a info about api requestpageNo- of the request paginationperPage- no. of items per page
-
ApiRequest
public ApiRequest(ApiAction apiAction, Integer pageNo, Map<String, String> queryParams, Integer perPage) Constructor- Parameters:
apiAction- a info about api requestpageNo- of the request paginationqueryParams- of the api requestperPage- no. of items per page
-
ApiRequest
Constructor- Parameters:
apiAction- a info about api requestdata- a api request body data object
-
ApiRequest
Constructor- Parameters:
apiAction- a info about api requestpathParams- a api request path variable value(s)pageNo- of the request paginationperPage- no. of items per page
-
ApiRequest
Constructor- Parameters:
apiAction- a info about api requestdata- a api request body data objectpathParams- a api request path variable value(s)
-
ApiRequest
public ApiRequest(ApiAction apiAction, Object data, Object[] pathParams, Integer pageNo, Map<String, String> queryParams, Integer perPage) Constructor- Parameters:
apiAction- a info about api requestdata- a api request body data objectpathParams- a api request path variable value(s)pageNo- of the request paginationqueryParams- of the api requestperPage- no. of items per page
-
-
Method Details
-
isCollectionElement
-
getPath
- Returns:
- the path
-
getElementName
- Returns:
- the elementName
-
getMethod
- Returns:
- the method
-
getClazz
- Returns:
- the clazz
-
getApiAction
- Returns:
- the apiAction
-
setApiAction
- Parameters:
apiAction- the apiAction to set
-
getData
- Returns:
- the data
-
setData
- Parameters:
data- the data to set
-
getPathParams
- Returns:
- the pathParams
-
setPathParams
- Parameters:
pathParams- the pathParams to set
-
getQueryParams
- Returns:
- the queryParams
-
setQueryParams
- Parameters:
queryParams- the queryParams to set
-
getPageNo
- Returns:
- the pageNo
-
setPageNo
- Parameters:
pageNo- the pageNo to set
-
getPerPage
- Returns:
- the perPage
-
setPerPage
- Parameters:
perPage- the perPage to set
-