public static List<PathSegment> getPathSegments(String thePath, boolean decode) { return getPathSegments(thePath, decode, true); }
public static List<PathSegment> getPathSegments(String thePath, boolean decode) { return getPathSegments(thePath, decode, true); }
public List<PathSegment> getPathSegments(boolean decode) { return JAXRSUtils.getPathSegments(getPath(false), decode); }
public List<PathSegment> getPathSegments(boolean decode) { return JAXRSUtils.getPathSegments(getPath(false), decode); }
private void setPathAndMatrix(String path) { leadingSlash = !originalPathEmpty && path.startsWith("/"); paths = JAXRSUtils.getPathSegments(path, false, false); if (!paths.isEmpty()) { matrix = paths.get(paths.size() - 1).getMatrixParameters(); } else { matrix.clear(); } }
private void setPathAndMatrix(String path) { leadingSlash = path.startsWith("/"); paths = JAXRSUtils.getPathSegments(path, false, false); if (!paths.isEmpty()) { matrix = paths.get(paths.size() - 1).getMatrixParameters(); } else { matrix.clear(); } }
List<PathSegment> pList = JAXRSUtils.getPathSegments(template, false); List<PathSegment> uList = JAXRSUtils.getPathSegments(uri, false); StringBuilder sb = new StringBuilder(); for (int i = 0; i < uList.size(); i++) {
List<PathSegment> pList = JAXRSUtils.getPathSegments(template, false); List<PathSegment> uList = JAXRSUtils.getPathSegments(uri, false); StringBuilder sb = new StringBuilder(); for (int i = 0; i < uList.size(); i++) {
segments = JAXRSUtils.getPathSegments(path, false, false); } else { segments = new ArrayList<PathSegment>();
String defaultValue, boolean decode) { List<PathSegment> segments = JAXRSUtils.getPathSegments( (String)m.get(Message.REQUEST_URI), decode); if (!segments.isEmpty()) {
String defaultValue, boolean decode) { List<PathSegment> segments = JAXRSUtils.getPathSegments( (String)m.get(Message.REQUEST_URI), decode); if (segments.size() > 0) {
segments = JAXRSUtils.getPathSegments(path, false, false); } else { segments = new ArrayList<>();
/** * Goes back * @param fast if true then goes back to baseURI otherwise to a previous path segment * @return updated WebClient */ public WebClient back(boolean fast) { getState().setTemplates(null); if (fast) { getCurrentBuilder().replacePath(getBaseURI().getPath()); } else { URI uri = getCurrentURI(); if (uri == getBaseURI()) { return this; } List<PathSegment> segments = JAXRSUtils.getPathSegments(uri.getPath(), false); getCurrentBuilder().replacePath(null); for (int i = 0; i < segments.size() - 1; i++) { getCurrentBuilder().path(HttpUtils.fromPathSegment(segments.get(i))); } } return this; }
/** * Goes back * @param fast if true then goes back to baseURI otherwise to a previous path segment * @return updated WebClient */ public WebClient back(boolean fast) { getState().setTemplates(null); if (fast) { getCurrentBuilder().replacePath(getBaseURI().getPath()); } else { URI uri = getCurrentURI(); if (uri == getBaseURI()) { return this; } List<PathSegment> segments = JAXRSUtils.getPathSegments(uri.getPath(), false); getCurrentBuilder().replacePath(null); for (int i = 0; i < segments.size() - 1; i++) { getCurrentBuilder().path(HttpUtils.fromPathSegment(segments.get(i))); } } return this; }
/** * Goes back * @param fast if true then goes back to baseURI otherwise to a previous path segment * @return updated WebClient */ public WebClient back(boolean fast) { getState().setTemplates(null); if (fast) { getCurrentBuilder().replacePath(getBaseURI().getPath()); } else { URI uri = getCurrentURI(); if (uri == getBaseURI()) { return this; } List<PathSegment> segments = JAXRSUtils.getPathSegments(uri.getPath(), false); getCurrentBuilder().replacePath(null); for (int i = 0; i < segments.size() - 1; i++) { getCurrentBuilder().path(HttpUtils.fromPathSegment(segments.get(i))); } } return this; }
List<PathSegment> segments = JAXRSUtils.getPathSegments(currentPath, true, true); StringBuilder sb = new StringBuilder(); for (PathSegment ps : segments) {