Package com.orchestranetworks.rest.util
Interface URIBuilderForBuiltin<T extends URIBuilderForBuiltin<T>>
-
- All Known Subinterfaces:
URIBuilderForBuiltin.ForDataAndHistory,URIBuilderForBuiltin.ForDataset<T>,URIBuilderForBuiltin.ForDataspace<T>,URIBuilderForBuiltin.ForNode<T>,URIBuilderForBuiltin.ForRecord<T>,URIBuilderForBuiltin.ForTable<T>
public interface URIBuilderForBuiltin<T extends URIBuilderForBuiltin<T>>Provides useful methods to generate aURIto EBX® built-in REST services.- Since:
- 5.9.0
- See Also:
Constants,CategoryURIBuilder, Data services documentation, Built-in REST services documentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceURIBuilderForBuiltin.ForDataAndHistoryAggregates methods to generate built-in REST servicesURIto data and history category resources.static interfaceURIBuilderForBuiltin.ForDataset<T extends URIBuilderForBuiltin<T>>Contains methods to generate built-in REST servicesURIto a dataset.static interfaceURIBuilderForBuiltin.ForDataspace<T extends URIBuilderForBuiltin<T>>Beta feature: Contains methods to generate built-in REST servicesURIto a dataspace.static interfaceURIBuilderForBuiltin.ForNode<T extends URIBuilderForBuiltin<T>>Contains methods to generate built-in REST servicesURIto a record field or a dataset node.static interfaceURIBuilderForBuiltin.ForRecord<T extends URIBuilderForBuiltin<T>>Contains methods to generate built-in REST servicesURIto a record.static interfaceURIBuilderForBuiltin.ForTable<T extends URIBuilderForBuiltin<T>>Contains methods to generate built-in REST servicesURIto a table.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URIbuild()Returns an absoluteURIthat includes every previous configured URI's part.TextendedAction(String anExtendedAction)Appends the provided extended action to the generated URI path's end.TfirstPage()Replaces the first page action from the existing set of query parameters.TlastPage()Replaces the last page action from the existing set of query parameters.TnextPage(String aPageRecordFilter)Replaces the next page action and page record filter from the existing set of query parameters.TpageSize(int aPageSize)Replaces the provided pageSize from the existing set of query parameters.TpreviousPage(String aPageRecordFilter)Replaces the previous page action and page record filter from the existing set of query parameters.TqueryParams(Map<String,String> parameters)TqueryParams(MultivaluedMap<String,String> parameters)Appends the provided query parameters to the existing set of query parameters.
-
-
-
Method Detail
-
queryParams
T queryParams(Map<String,String> parameters)
- See Also:
queryParams(MultivaluedMap)
-
queryParams
T queryParams(MultivaluedMap<String,String> parameters)
Appends the provided query parameters to the existing set of query parameters.- Parameters:
parameters- the query parameters to add to the existing set.- Returns:
- the updated URI Builder.
- Since:
- 6.0.0
- See Also:
UriBuilder.queryParam(String, Object...)
-
pageSize
T pageSize(int aPageSize)
Replaces the provided pageSize from the existing set of query parameters.- Parameters:
aPageSize- the size of the returned page.- Returns:
- the updated URI builder.
- Since:
- 6.0.0
- See Also:
UriBuilder.replaceQueryParam(String, Object...)
-
firstPage
T firstPage()
Replaces the first page action from the existing set of query parameters.If a page record filter is found, it is deleted.
- Returns:
- the updated URI builder.
- Since:
- 6.0.0
- See Also:
UriBuilder.replaceQueryParam(String, Object...)
-
lastPage
T lastPage()
Replaces the last page action from the existing set of query parameters.If a page record filter is found, it is deleted.
- Returns:
- the updated URI builder.
- Since:
- 6.0.0
- See Also:
UriBuilder.replaceQueryParam(String, Object...)
-
nextPage
T nextPage(String aPageRecordFilter)
Replaces the next page action and page record filter from the existing set of query parameters.- Parameters:
aPageRecordFilter- a record XPath predicate expression used to determine the pagination contexts. It should not be modified on the client side.- Returns:
- the updated URI builder.
- Since:
- 6.0.0
- See Also:
UriBuilder.replaceQueryParam(String, Object...)
-
previousPage
T previousPage(String aPageRecordFilter)
Replaces the previous page action and page record filter from the existing set of query parameters.- Parameters:
aPageRecordFilter- a record XPath predicate expression used to determine the pagination contexts. It should not be modified on the client side.- Returns:
- the updated URI builder.
- Since:
- 6.0.0
- See Also:
UriBuilder.replaceQueryParam(String, Object...)
-
extendedAction
T extendedAction(String anExtendedAction)
Appends the provided extended action to the generated URI path's end.Warning: When this API is run, the extended action is appended to the currently configured URI's path.
- Parameters:
anExtendedAction- the extended action to append. If the provided value is not prefaced with the character:, then it is automatically added.- Returns:
- the updated URI builder.
- Since:
- 6.0.0
-
build
URI build()
Returns an absoluteURIthat includes every previous configured URI's part.- See Also:
- URL definition
-
-