private void handleResourcePath() throws UriSyntaxException, UriNotMatchingException, EdmException { if (pathSegments.isEmpty()) { uriResult.setUriType(UriType.URI0); } else { currentPathSegment = pathSegments.remove(0); if ("$metadata".equals(currentPathSegment)) { ensureLastSegment(); uriResult.setUriType(UriType.URI8); } else if ("$batch".equals(currentPathSegment)) { ensureLastSegment(); uriResult.setUriType(UriType.URI9); } else { handleNormalInitialSegment(); } } }
private void handleResourcePath() throws UriSyntaxException, UriNotMatchingException, EdmException { if (pathSegments.isEmpty()) { uriResult.setUriType(UriType.URI0); } else { currentPathSegment = pathSegments.remove(0); final String decodedPath = percentDecode(currentPathSegment); if ("$metadata".equals(decodedPath)) { ensureLastSegment(); uriResult.setUriType(UriType.URI8); } else if ("$batch".equals(decodedPath)) { ensureLastSegment(); uriResult.setUriType(UriType.URI9); } else { handleNormalInitialSegment(); } } }
private void handleResourcePath() throws UriSyntaxException, UriNotMatchingException, EdmException { if (pathSegments.isEmpty()) { uriResult.setUriType(UriType.URI0); } else { currentPathSegment = pathSegments.remove(0); final String decodedPath = percentDecode(currentPathSegment); if ("$metadata".equals(decodedPath)) { ensureLastSegment(); uriResult.setUriType(UriType.URI8); } else if ("$batch".equals(decodedPath)) { ensureLastSegment(); uriResult.setUriType(UriType.URI9); } else { handleNormalInitialSegment(); } } }
private void handleNavigationPathOptions() throws UriSyntaxException, UriNotMatchingException, EdmException { currentPathSegment = pathSegments.remove(0); checkCount(); if (uriResult.isCount()) { uriResult.setUriType(UriType.URI16); // Count of multiple entities is handled elsewhere } else if ("$value".equals(currentPathSegment)) { if (uriResult.getTargetEntitySet().getEntityType().hasStream()) { ensureLastSegment(); uriResult.setUriType(UriType.URI17); uriResult.setValue(true); } else { throw new UriSyntaxException(UriSyntaxException.NOMEDIARESOURCE); } } else if ("$links".equals(currentPathSegment)) { uriResult.setLinks(true); if (pathSegments.isEmpty()) { throw new UriSyntaxException(UriSyntaxException.MUSTNOTBELASTSEGMENT.addContent(currentPathSegment)); } currentPathSegment = pathSegments.remove(0); handleNavigationProperties(); } else { handleNavigationProperties(); } }
private void handleNavigationPathOptions() throws UriSyntaxException, UriNotMatchingException, EdmException { currentPathSegment = pathSegments.remove(0); final String decodedPath = percentDecode(currentPathSegment); checkCount(); if (uriResult.isCount()) { uriResult.setUriType(UriType.URI16); // Count of multiple entities is handled elsewhere } else if ("$value".equals(decodedPath)) { if (uriResult.getTargetEntitySet().getEntityType().hasStream()) { ensureLastSegment(); uriResult.setUriType(UriType.URI17); uriResult.setValue(true); } else { throw new UriSyntaxException(UriSyntaxException.NOMEDIARESOURCE); } } else if ("$links".equals(decodedPath)) { uriResult.setLinks(true); if (pathSegments.isEmpty()) { throw new UriSyntaxException(UriSyntaxException.MUSTNOTBELASTSEGMENT.addContent(currentPathSegment)); } currentPathSegment = pathSegments.remove(0); handleNavigationProperties(); } else { handleNavigationProperties(); } }
private void handleNavigationPathOptions() throws UriSyntaxException, UriNotMatchingException, EdmException { currentPathSegment = pathSegments.remove(0); final String decodedPath = percentDecode(currentPathSegment); checkCount(); if (uriResult.isCount()) { uriResult.setUriType(UriType.URI16); // Count of multiple entities is handled elsewhere } else if ("$value".equals(decodedPath)) { if (uriResult.getTargetEntitySet().getEntityType().hasStream()) { ensureLastSegment(); uriResult.setUriType(UriType.URI17); uriResult.setValue(true); } else { throw new UriSyntaxException(UriSyntaxException.NOMEDIARESOURCE); } } else if ("$links".equals(decodedPath)) { uriResult.setLinks(true); if (pathSegments.isEmpty()) { throw new UriSyntaxException(UriSyntaxException.MUSTNOTBELASTSEGMENT.addContent(currentPathSegment)); } currentPathSegment = pathSegments.remove(0); handleNavigationProperties(); } else { handleNavigationProperties(); } }
case SIMPLE: if ("$value".equals(currentPathSegment)) { ensureLastSegment(); uriResult.setValue(true); if (uriResult.getPropertyPath().size() == 1) {
case SIMPLE: if ("$value".equals(percentDecode(currentPathSegment))) { ensureLastSegment(); uriResult.setValue(true); if (uriResult.getPropertyPath().size() == 1) {
case SIMPLE: if ("$value".equals(percentDecode(currentPathSegment))) { ensureLastSegment(); uriResult.setValue(true); if (uriResult.getPropertyPath().size() == 1) {
uriResult.setUriType(UriType.URI14); ensureLastSegment();