Class UriParserImpl
java.lang.Object
org.apache.olingo.odata2.api.uri.UriParser
org.apache.olingo.odata2.core.uri.UriParserImpl
Parser for the OData part of the URL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildExpandSelectTree(List<SelectItem> select, List<ArrayList<NavigationPropertySegment>> expand) protected PathSegmentgetKeyFromEntityLink(EdmEntitySet entitySet, String entityLink, URI serviceRoot) Parse the URI part after an OData service root, already splitted into path segments and query parameters.parseFilterString(EdmEntityType entityType, String expression) parseOrderByString(EdmEntityType entityType, String expression) Methods inherited from class org.apache.olingo.odata2.api.uri.UriParser
createExpandSelectTree, createPathSegment, getKeyPredicatesFromEntityLink, parse, parseFilter, parseOrderBy
-
Constructor Details
-
UriParserImpl
-
-
Method Details
-
parse
public UriInfo parse(List<PathSegment> pathSegments, Map<String, String> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmExceptionParse the URI part after an OData service root, already splitted into path segments and query parameters.- Specified by:
parsein classUriParser- Parameters:
pathSegments- thePathSegments of the resource path, potentially percent-encodedqueryParameters- the query parameters, already percent-decoded- Returns:
- a
UriInfoImplinstance containing the parsed information - Throws:
UriSyntaxExceptionUriNotMatchingExceptionEdmException
-
parseAll
public UriInfo parseAll(List<PathSegment> pathSegments, Map<String, List<String>> allQueryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException- Specified by:
parseAllin classUriParser- Throws:
UriSyntaxExceptionUriNotMatchingExceptionEdmException
-
parseFilterString
public FilterExpression parseFilterString(EdmEntityType entityType, String expression) throws ODataMessageException - Specified by:
parseFilterStringin classUriParser- Throws:
ODataMessageException
-
parseOrderByString
public OrderByExpression parseOrderByString(EdmEntityType entityType, String expression) throws ODataMessageException - Specified by:
parseOrderByStringin classUriParser- Throws:
ODataMessageException
-
buildExpandSelectTree
public ExpandSelectTreeNode buildExpandSelectTree(List<SelectItem> select, List<ArrayList<NavigationPropertySegment>> expand) throws EdmException - Specified by:
buildExpandSelectTreein classUriParser- Throws:
EdmException
-
buildPathSegment
- Specified by:
buildPathSegmentin classUriParser
-
getKeyFromEntityLink
public List<KeyPredicate> getKeyFromEntityLink(EdmEntitySet entitySet, String entityLink, URI serviceRoot) throws ODataException - Specified by:
getKeyFromEntityLinkin classUriParser- Throws:
ODataException
-