@Override @Deprecated public UriInfo parse(List<PathSegment> pathSegments, Map<String, String> queryParameters, boolean strictFilter) throws UriSyntaxException, UriNotMatchingException, EdmException { this.strictFilter = strictFilter; return parseAll(pathSegments, convertFromSingleMapToMultiMap(queryParameters)); }
@Override public UriInfo parseUri(Edm edm, List<PathSegment> pathSegments, Map<String, List<String>> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException { return new UriParserImpl(edm).parseAll(pathSegments, queryParameters); }
/** * Parse the URI part after an OData service root, * already splitted into path segments and query parameters. * @param pathSegments the {@link PathSegment}s of the resource path, * potentially percent-encoded * @param queryParameters the query parameters, already percent-decoded * @return a {@link UriInfoImpl} instance containing the parsed information */ @Override public UriInfo parse(final List<PathSegment> pathSegments, final Map<String, String> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException { return parseAll(pathSegments, convertFromSingleMapToMultiMap(queryParameters)); }
/** * Parse the URI part after an OData service root, * already splitted into path segments and query parameters. * @param pathSegments the {@link PathSegment}s of the resource path, * potentially percent-encoded * @param queryParameters the query parameters, already percent-decoded * @return a {@link UriInfoImpl} instance containing the parsed information */ @Override public UriInfo parse(final List<PathSegment> pathSegments, final Map<String, String> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException { return parseAll(pathSegments, convertFromSingleMapToMultiMap(queryParameters)); }
@Override public UriInfo parseUri(Edm edm, String uri) throws UriSyntaxException, UriNotMatchingException, EdmException { final String[] path = uri.split(QUESTIONMARK, -1); if (path.length > 2) { throw new UriSyntaxException(UriSyntaxException.URISYNTAX); } final List<PathSegment> pathSegments = getPathSegments(path[0]); Map<String, List<String>> queryParameters; if (path.length == 2) { queryParameters = getQueryParameters(unescape(path[1])); } else { queryParameters = new HashMap<String, List<String>>(); } return new UriParserImpl(edm).parseAll(pathSegments, queryParameters); } /**