public class EdmURIBuilderImpl extends Object implements EdmURIBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
customQueryOptions
Insertion-order map of custom query options.
|
protected Map<String,Object> |
functionImportParameters
Insertion-order map of function import parameters.
|
protected Map<String,String> |
queryOptions
Insertion-order map of query options.
|
protected List<Segment> |
segments |
| Constructor and Description |
|---|
EdmURIBuilderImpl(String serviceRoot)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EdmURIBuilder |
addCustomQueryOption(String paramName,
Object paramValue)
Adds custom query option
|
EdmURIBuilder |
addQueryOption(QueryOption option,
String value)
Adds the specified query option to the URI.
|
EdmURIBuilder |
addQueryOption(String option,
String value,
boolean replace) |
EdmURIBuilder |
appendCountSegment()
Appends count segment to the URI.
|
EdmURIBuilder |
appendEntitySetSegment(EdmEntitySet entitySet)
Appends EntitySet segment to the URI.
|
EdmURIBuilder |
appendFunctionImportParameters(Map<EdmParameter,Object> functionImportParams)
Appends function import parameters
|
EdmURIBuilder |
appendFunctionImportSegment(EdmFunctionImport functionImport)
Appends Function import to the uri
|
EdmURIBuilder |
appendKeySegment(EdmProperty property,
Object value)
Appends key segment to the URI.
|
EdmURIBuilder |
appendKeySegment(Map<EdmProperty,Object> segmentValues)
Appends key segment to the URI, for multiple keys.
|
EdmURIBuilder |
appendMetadataSegment()
Appends metadata segment to the URI.
|
EdmURIBuilder |
appendNavigationSegment(EdmNavigationProperty property)
Appends navigation segment to the URI.
|
EdmURIBuilder |
appendPropertySegment(EdmProperty property,
String segmentValue)
Appends property segment to the URI.
|
EdmURIBuilder |
appendValueSegment()
Appends value segment to the URI.
|
URI |
build()
Build OData URI.
|
protected String |
buildMultiKeySegment(Map<EdmProperty,Object> segmentValues,
char separator) |
EdmURIBuilder |
expand(String... expandItems)
Adds expand query option.
|
EdmURIBuilder |
filter(String filter)
Adds filter query option.
|
EdmURIBuilder |
format(String format)
Adds format query option.
|
EdmURIBuilder |
orderBy(String property)
Adds orderby query option.
|
EdmURIBuilder |
replaceQueryOption(QueryOption option,
String value) |
EdmURIBuilder |
select(String... selectItems)
Adds select query option.
|
EdmURIBuilder |
skip(int skip)
Adds skip query option.
|
EdmURIBuilder |
top(int top)
Adds top query option.
|
protected final Map<String,String> customQueryOptions
public EdmURIBuilderImpl(String serviceRoot)
serviceRoot - absolute URL (schema, host and port included) representing the location of the root of the data
service.public EdmURIBuilder appendCountSegment()
EdmURIBuilderappendCountSegment in interface EdmURIBuilderpublic EdmURIBuilder appendValueSegment()
EdmURIBuilderappendValueSegment in interface EdmURIBuilderpublic EdmURIBuilder appendMetadataSegment()
EdmURIBuilderappendMetadataSegment in interface EdmURIBuilderpublic EdmURIBuilder format(String format)
EdmURIBuilderformat in interface EdmURIBuilderformat - media type acceptable in a response.QueryOption.FORMATpublic EdmURIBuilder appendEntitySetSegment(EdmEntitySet entitySet)
EdmURIBuilderappendEntitySetSegment in interface EdmURIBuilderentitySet - Edm entity set.public EdmURIBuilder appendNavigationSegment(EdmNavigationProperty property)
EdmURIBuilderappendNavigationSegment in interface EdmURIBuilderproperty - navigation property.public EdmURIBuilder appendKeySegment(EdmProperty property, Object value)
EdmURIBuilderappendKeySegment in interface EdmURIBuilderproperty - edm propertyvalue - key valuepublic EdmURIBuilder appendKeySegment(Map<EdmProperty,Object> segmentValues)
EdmURIBuilderappendKeySegment in interface EdmURIBuildersegmentValues - segment values.protected String buildMultiKeySegment(Map<EdmProperty,Object> segmentValues, char separator) throws EdmException
EdmExceptionpublic EdmURIBuilder filter(String filter)
EdmURIBuilderfilter in interface EdmURIBuilderfilter - filter string.QueryOption.FILTERpublic EdmURIBuilder select(String... selectItems)
EdmURIBuilderselect in interface EdmURIBuilderselectItems - select itemsQueryOption.SELECTpublic EdmURIBuilder orderBy(String property)
EdmURIBuilderorderBy in interface EdmURIBuilderproperty - property string.QueryOption.ORDERBYpublic EdmURIBuilder top(int top)
EdmURIBuildertop in interface EdmURIBuildertop - maximum number of entities to be returned.QueryOption.TOPpublic EdmURIBuilder skip(int skip)
EdmURIBuilderskip in interface EdmURIBuilderskip - number of entities to be skipped into the response.QueryOption.SKIPpublic URI build()
EdmURIBuilderbuild in interface EdmURIBuilderpublic EdmURIBuilder addQueryOption(QueryOption option, String value)
EdmURIBuilderaddQueryOption in interface EdmURIBuilderoption - query option.value - query option value.public EdmURIBuilder replaceQueryOption(QueryOption option, String value)
public EdmURIBuilder addQueryOption(String option, String value, boolean replace)
public EdmURIBuilder appendPropertySegment(EdmProperty property, String segmentValue)
EdmURIBuilderappendPropertySegment in interface EdmURIBuilderproperty - edmPropertysegmentValue - segment value.public EdmURIBuilder expand(String... expandItems)
EdmURIBuilderexpand in interface EdmURIBuilderexpandItems - items to be expanded in-lineQueryOption.EXPANDpublic EdmURIBuilder addCustomQueryOption(String paramName, Object paramValue)
EdmURIBuilderaddCustomQueryOption in interface EdmURIBuilderparamName - parameter nameparamValue - parameter valuepublic EdmURIBuilder appendFunctionImportSegment(EdmFunctionImport functionImport)
EdmURIBuilderappendFunctionImportSegment in interface EdmURIBuilderpublic EdmURIBuilder appendFunctionImportParameters(Map<EdmParameter,Object> functionImportParams)
EdmURIBuilderappendFunctionImportParameters in interface EdmURIBuilderCopyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.