Class UriInfoImpl
java.lang.Object
org.apache.olingo.server.core.uri.UriInfoImpl
- All Implemented Interfaces:
UriInfo,UriInfoAll,UriInfoBatch,UriInfoCrossjoin,UriInfoEntityId,UriInfoMetadata,UriInfoResource,UriInfoService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAlias(AliasQueryOption alias) addEntitySetName(String entitySet) addResourcePart(UriResource uriPathInfo) Convenience casting method.Convenience casting method.Convenience casting method.Convenience casting method.Convenience casting method.Convenience casting method.Convenience casting method.Gets a list of all alias definitions which were in the URI (including aliases not used anywhere).Behind $entity a optional type cast can be used in the URI.getKind()SeeUriInfoKindfor more details which kinds are allowed.Gets a list of all system query options which were in the URI.The path segments behind the service root define which resources are requested by that URI.getValueForAlias(String alias) setFragment(String fragment) setKind(UriInfoKind kind) setQueryOption(QueryOption option) setSystemQueryOption(SystemQueryOption systemOption) Adds system query option.
-
Constructor Details
-
UriInfoImpl
public UriInfoImpl()
-
-
Method Details
-
setKind
-
getKind
Description copied from interface:UriInfoSeeUriInfoKindfor more details which kinds are allowed. -
asUriInfoAll
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoAllin interfaceUriInfo- Returns:
- this as a
UriInfoAllobject
-
asUriInfoBatch
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoBatchin interfaceUriInfo- Returns:
- this as a
UriInfoBatchobject
-
asUriInfoCrossjoin
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoCrossjoinin interfaceUriInfo- Returns:
- this as a
UriInfoCrossjoinobject
-
asUriInfoEntityId
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoEntityIdin interfaceUriInfo- Returns:
- this as a
UriInfoEntityIdobject
-
asUriInfoService
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoServicein interfaceUriInfo- Returns:
- this as a
UriInfoServiceobject
-
asUriInfoMetadata
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoMetadatain interfaceUriInfo- Returns:
- this as a
UriInfoMetadataobject
-
asUriInfoResource
Description copied from interface:UriInfoConvenience casting method.- Specified by:
asUriInfoResourcein interfaceUriInfo- Returns:
- this as a
UriInfoResourceobject
-
addEntitySetName
-
getEntitySetNames
- Specified by:
getEntitySetNamesin interfaceUriInfoCrossjoin- Returns:
- List of entity set names
-
setEntityTypeCast
-
getEntityTypeCast
Description copied from interface:UriInfoEntityIdBehind $entity a optional type cast can be used in the URI. For example: http://.../serviceroot/$entity/namespace.entitytype- Specified by:
getEntityTypeCastin interfaceUriInfoEntityId- Returns:
- Type cast if found, otherwise null
-
addResourcePart
-
getLastResourcePart
-
getUriResourceParts
Description copied from interface:UriInfoResourceThe path segments behind the service root define which resources are requested by that URI. This may be entities/functions/actions and more. Each segments information (name, key predicates, function parameters, ...) is stored within an resource object dedicated for that segment type. For example: the URI http://.../serviceroot/entitySet(1)/Adresse will have 2 ResourceParts:
- The first one of typeUriResourceEntitySetcontaining the name of the entity set and also the key predicate information.
- The second one of typeUriResourceComplexPropertycontaining the name of the accessed complex property- Specified by:
getUriResourcePartsin interfaceUriInfoResource- Returns:
- List of resource parts.
-
setQueryOption
-
setSystemQueryOption
Adds system query option.- Parameters:
systemOption- the option to be added- Returns:
- this object for method chaining
- Throws:
ODataRuntimeException- if an unsupported option is provided or an option of this kind has been added before
-
getExpandOption
- Specified by:
getExpandOptionin interfaceUriInfoCrossjoin- Specified by:
getExpandOptionin interfaceUriInfoEntityId- Specified by:
getExpandOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $expand option
-
getFilterOption
- Specified by:
getFilterOptionin interfaceUriInfoCrossjoin- Specified by:
getFilterOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $filter option
-
getFormatOption
- Specified by:
getFormatOptionin interfaceUriInfoAll- Specified by:
getFormatOptionin interfaceUriInfoCrossjoin- Specified by:
getFormatOptionin interfaceUriInfoEntityId- Specified by:
getFormatOptionin interfaceUriInfoMetadata- Specified by:
getFormatOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $format option
-
getIdOption
- Specified by:
getIdOptionin interfaceUriInfoEntityId- Specified by:
getIdOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $id option
-
getCountOption
- Specified by:
getCountOptionin interfaceUriInfoAll- Specified by:
getCountOptionin interfaceUriInfoCrossjoin- Specified by:
getCountOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $count option
-
getOrderByOption
- Specified by:
getOrderByOptionin interfaceUriInfoCrossjoin- Specified by:
getOrderByOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $orderby option
-
getSearchOption
- Specified by:
getSearchOptionin interfaceUriInfoAll- Specified by:
getSearchOptionin interfaceUriInfoCrossjoin- Specified by:
getSearchOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $search option
-
getSelectOption
- Specified by:
getSelectOptionin interfaceUriInfoCrossjoin- Specified by:
getSelectOptionin interfaceUriInfoEntityId- Specified by:
getSelectOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $select option
-
getSkipOption
- Specified by:
getSkipOptionin interfaceUriInfoAll- Specified by:
getSkipOptionin interfaceUriInfoCrossjoin- Specified by:
getSkipOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $skip option
-
getSkipTokenOption
- Specified by:
getSkipTokenOptionin interfaceUriInfoAll- Specified by:
getSkipTokenOptionin interfaceUriInfoCrossjoin- Specified by:
getSkipTokenOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $skiptoken option
-
getTopOption
- Specified by:
getTopOptionin interfaceUriInfoAll- Specified by:
getTopOptionin interfaceUriInfoCrossjoin- Specified by:
getTopOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $top option
-
getApplyOption
- Specified by:
getApplyOptionin interfaceUriInfoResource- Returns:
- information about the $apply option
-
getSystemQueryOptions
Description copied from interface:UriInfoGets a list of all system query options which were in the URI.- Specified by:
getSystemQueryOptionsin interfaceUriInfo- Returns:
- a list of all system query options used
-
addAlias
-
getValueForAlias
- Specified by:
getValueForAliasin interfaceUriInfoResource- Returns:
- the value for the given alias or null if no value is defined
-
getAliasMap
-
getAliases
Description copied from interface:UriInfoGets a list of all alias definitions which were in the URI (including aliases not used anywhere).- Specified by:
getAliasesin interfaceUriInfo- Returns:
- a list of all alias definitions
-
addCustomQueryOption
-
getCustomQueryOptions
- Specified by:
getCustomQueryOptionsin interfaceUriInfoAll- Specified by:
getCustomQueryOptionsin interfaceUriInfoEntityId- Specified by:
getCustomQueryOptionsin interfaceUriInfoResource- Returns:
- List of custom query options used in the URI (without alias definitions)
-
setFragment
-
getFragment
- Specified by:
getFragmentin interfaceUriInfoMetadata- Returns:
- Object containing information of the URI fragment
-
getDeltaTokenOption
- Specified by:
getDeltaTokenOptionin interfaceUriInfoAll- Specified by:
getDeltaTokenOptionin interfaceUriInfoCrossjoin- Specified by:
getDeltaTokenOptionin interfaceUriInfoResource- Returns:
- Object containing information of the $deltatoken option
-