Class UriParserImpl
- java.lang.Object
-
- org.apache.olingo.odata2.api.uri.UriParser
-
- org.apache.olingo.odata2.core.uri.UriParserImpl
-
public class UriParserImpl extends UriParser
Parser for the OData part of the URL.
-
-
Constructor Summary
Constructors Constructor Description UriParserImpl(Edm edm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpandSelectTreeNodebuildExpandSelectTree(List<SelectItem> select, List<ArrayList<NavigationPropertySegment>> expand)protected PathSegmentbuildPathSegment(String path, Map<String,List<String>> matrixParameters)List<KeyPredicate>getKeyFromEntityLink(EdmEntitySet entitySet, String entityLink, URI serviceRoot)UriInfoparse(List<PathSegment> pathSegments, Map<String,String> queryParameters)Parse the URI part after an OData service root, already splitted into path segments and query parameters.UriInfoparseAll(List<PathSegment> pathSegments, Map<String,List<String>> allQueryParameters)FilterExpressionparseFilterString(EdmEntityType entityType, String expression)OrderByExpressionparseOrderByString(EdmEntityType entityType, String expression)-
Methods inherited from class org.apache.olingo.odata2.api.uri.UriParser
createExpandSelectTree, createPathSegment, getKeyPredicatesFromEntityLink, parse, parseFilter, parseOrderBy
-
-
-
-
Constructor Detail
-
UriParserImpl
public UriParserImpl(Edm edm)
-
-
Method Detail
-
parse
public UriInfo parse(List<PathSegment> pathSegments, Map<String,String> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException
Parse 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
protected PathSegment buildPathSegment(String path, Map<String,List<String>> matrixParameters)
- Specified by:
buildPathSegmentin classUriParser
-
getKeyFromEntityLink
public List<KeyPredicate> getKeyFromEntityLink(EdmEntitySet entitySet, String entityLink, URI serviceRoot) throws ODataException
- Specified by:
getKeyFromEntityLinkin classUriParser- Throws:
ODataException
-
-