public class ApiRequest extends Object
| Constructor and Description |
|---|
ApiRequest()
Default Constructor
|
ApiRequest(ApiAction apiAction)
Constructor
|
ApiRequest(ApiAction apiAction,
Integer pageNo,
Integer perPage)
Constructor
|
ApiRequest(ApiAction apiAction,
Integer pageNo,
Map<String,String> queryParams,
Integer perPage)
Constructor
|
ApiRequest(ApiAction apiAction,
Object data)
Constructor
|
ApiRequest(ApiAction apiAction,
Object[] pathParams)
Constructor
|
ApiRequest(ApiAction apiAction,
Object[] pathParams,
Integer pageNo,
Integer perPage)
Constructor
|
ApiRequest(ApiAction apiAction,
Object data,
Object[] pathParams)
Constructor
|
ApiRequest(ApiAction apiAction,
Object data,
Object[] pathParams,
Integer pageNo,
Map<String,String> queryParams,
Integer perPage)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ApiAction |
getApiAction() |
Class<?> |
getClazz() |
Object |
getData() |
String |
getElementName() |
RequestMethod |
getMethod() |
Integer |
getPageNo() |
String |
getPath() |
Object[] |
getPathParams() |
Integer |
getPerPage() |
Map<String,String> |
getQueryParams() |
Boolean |
isCollectionElement() |
void |
setApiAction(ApiAction apiAction) |
void |
setData(Object data) |
void |
setPageNo(Integer pageNo) |
void |
setPathParams(Object[] pathParams) |
void |
setPerPage(Integer perPage) |
void |
setQueryParams(Map<String,String> queryParams) |
public ApiRequest()
public ApiRequest(ApiAction apiAction)
apiAction - a info about api requestpublic ApiRequest(ApiAction apiAction, Object[] pathParams)
apiAction - a info about api requestpathParams - a api request path variable value(s)public ApiRequest(ApiAction apiAction, Integer pageNo, Integer perPage)
apiAction - a info about api requestpageNo - of the request paginationperPage - no. of items per pagepublic ApiRequest(ApiAction apiAction, Integer pageNo, Map<String,String> queryParams, Integer perPage)
apiAction - a info about api requestpageNo - of the request paginationqueryParams - of the api requestperPage - no. of items per pagepublic ApiRequest(ApiAction apiAction, Object data)
apiAction - a info about api requestdata - a api request body data objectpublic ApiRequest(ApiAction apiAction, Object[] pathParams, Integer pageNo, Integer perPage)
apiAction - a info about api requestpathParams - a api request path variable value(s)pageNo - of the request paginationperPage - no. of items per pagepublic ApiRequest(ApiAction apiAction, Object data, Object[] pathParams)
apiAction - a info about api requestdata - a api request body data objectpathParams - a api request path variable value(s)public ApiRequest(ApiAction apiAction, Object data, Object[] pathParams, Integer pageNo, Map<String,String> queryParams, Integer perPage)
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 pagepublic Boolean isCollectionElement()
public String getPath()
public String getElementName()
public RequestMethod getMethod()
public Class<?> getClazz()
public ApiAction getApiAction()
public void setApiAction(ApiAction apiAction)
apiAction - the apiAction to setpublic Object getData()
public void setData(Object data)
data - the data to setpublic Object[] getPathParams()
public void setPathParams(Object[] pathParams)
pathParams - the pathParams to setpublic void setQueryParams(Map<String,String> queryParams)
queryParams - the queryParams to setpublic Integer getPageNo()
public void setPageNo(Integer pageNo)
pageNo - the pageNo to setpublic Integer getPerPage()
public void setPerPage(Integer perPage)
perPage - the perPage to set
Copyright © myjeeva blog, All rights reserved.
The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons – Attribution-ShareAlike 4.0 International (CC BY-SA 4.0). Libraries and code snippets on myjeeva blog has license information.