Class URIBuilderImpl
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.uri.URIBuilderImpl
-
- All Implemented Interfaces:
URIBuilder
public class URIBuilderImpl extends Object implements URIBuilder
This is a builder class that constructs URI without edm validations
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>customQueryOptionsInsertion-order map of custom query options.protected Map<String,Object>functionImportParametersInsertion-order map of function import parameters.protected Map<String,String>queryOptionsInsertion-order map of query options.protected List<Segment>segments
-
Constructor Summary
Constructors Constructor Description URIBuilderImpl(String serviceRoot)Constructor.
-
Method Summary
-
-
-
Constructor Detail
-
URIBuilderImpl
public URIBuilderImpl(String serviceRoot)
Constructor.- Parameters:
serviceRoot- absolute URL (schema, host and port included) representing the location of the root of the data service.
-
-
Method Detail
-
appendCountSegment
public URIBuilder appendCountSegment()
- Specified by:
appendCountSegmentin interfaceURIBuilder
-
appendMetadataSegment
public URIBuilder appendMetadataSegment()
- Specified by:
appendMetadataSegmentin interfaceURIBuilder
-
format
public URIBuilder format(String format)
- Specified by:
formatin interfaceURIBuilder
-
appendValueSegment
public URIBuilder appendValueSegment()
- Specified by:
appendValueSegmentin interfaceURIBuilder
-
addQueryOption
public URIBuilder addQueryOption(QueryOption option, String value)
- Specified by:
addQueryOptionin interfaceURIBuilder
-
filter
public URIBuilder filter(String filter)
- Specified by:
filterin interfaceURIBuilder
-
top
public URIBuilder top(int top)
- Specified by:
topin interfaceURIBuilder
-
skip
public URIBuilder skip(int skip)
- Specified by:
skipin interfaceURIBuilder
-
addCustomQueryOption
public URIBuilder addCustomQueryOption(String paramName, Object paramValue)
- Specified by:
addCustomQueryOptionin interfaceURIBuilder
-
build
public URI build()
- Specified by:
buildin interfaceURIBuilder
-
appendEntitySetSegment
public URIBuilder appendEntitySetSegment(String entitySet)
- Specified by:
appendEntitySetSegmentin interfaceURIBuilder
-
appendNavigationSegment
public URIBuilder appendNavigationSegment(String navigationProperty)
- Specified by:
appendNavigationSegmentin interfaceURIBuilder
-
appendKeySegment
public URIBuilder appendKeySegment(Object value)
- Specified by:
appendKeySegmentin interfaceURIBuilder
-
appendKeySegment
public URIBuilder appendKeySegment(Map<String,Object> segmentValues)
- Specified by:
appendKeySegmentin interfaceURIBuilder
-
appendPropertySegment
public URIBuilder appendPropertySegment(String segmentValue)
- Specified by:
appendPropertySegmentin interfaceURIBuilder
-
expand
public URIBuilder expand(String... expandItems)
- Specified by:
expandin interfaceURIBuilder
-
select
public URIBuilder select(String... selectItems)
- Specified by:
selectin interfaceURIBuilder
-
orderBy
public URIBuilder orderBy(String order)
- Specified by:
orderByin interfaceURIBuilder
-
replaceQueryOption
public URIBuilder replaceQueryOption(QueryOption option, String value)
- Parameters:
option- QueryOptionvalue- Valor- Returns:
- URIBuilder
-
appendFunctionImportSegment
public URIBuilder appendFunctionImportSegment(String functionImport)
- Specified by:
appendFunctionImportSegmentin interfaceURIBuilder
-
appendFunctionImportParameters
public URIBuilder appendFunctionImportParameters(Map<String,Object> functionImportParams)
- Specified by:
appendFunctionImportParametersin interfaceURIBuilder
-
-