public final class OctaneUrl extends Object
OctaneHttpClient| Modifier and Type | Method and Description |
|---|---|
void |
addFieldsParam(String... fields)
Set hte value of the "fields" param,
|
String |
getParam(String paramName)
Get the value of the query param
|
List<String> |
getPaths()
Return the current paths
|
boolean |
hasParam(String paramName)
Check whether the query param with
paramName has already been set via setParam(String, String) |
void |
setDqlQueryParam(Query query)
Set a param named "query" that is used to filter data
|
void |
setLimitParam(int limit)
Set query param named "limit", for the Octane API it controls max number of results returned from the data-set,
can be used for pagination together with setOffsetParam(int) |
void |
setOffsetParam(int offset)
Set query param named "offset", for the Octane API it controls the offset from the fist entity of the data-set,
can be used for pagination together with setLimitParam(int) |
void |
setOrderByParam(String orderBy,
boolean asc)
Set the value of the "order_by" param
|
void |
setParam(String paramName,
String paramValue)
Set query param
|
String |
toString()
Build the url string from the state of this object
|
public List<String> getPaths()
public boolean hasParam(String paramName)
paramName has already been set via setParam(String, String)paramName - name of the parameterpublic void setParam(String paramName, String paramValue)
paramName - name of the parameterparamValue - value of the parameterpublic String getParam(String paramName)
paramName - name of the parameterpublic void addFieldsParam(String... fields)
fields - list of fields of the Entity to be retrievedpublic void setLimitParam(int limit)
setOffsetParam(int)limit - value of limitpublic void setOffsetParam(int offset)
setLimitParam(int)offset - value of offsetpublic void setOrderByParam(String orderBy, boolean asc)
orderBy - name of a field of an EntityModel, to sort byasc - true for ascending, false for descendingpublic void setDqlQueryParam(Query query)
query - Query object, build by Query.QueryBuilderCopyright © 2021 Micro Focus. All rights reserved.