public String[] getAllDocumentPaths() { Response res = callGet(buildEncodeCall(API_LISTALL, "")); if (logger.isDebugEnabled()) logger.debug("RemoteStore.getAllDocumentPaths() " + res.getStatus().getCode()); if (Status.STATUS_OK == res.getStatus().getCode()) { // convert to an array of store root-relative paths List<String> list = new ArrayList<String>(128); StringTokenizer t = new StringTokenizer(res.getResponse(), "\n"); while (t.hasMoreTokens()) { list.add(t.nextToken()); } String[] paths = list.toArray(new String[list.size()]); // truncate paths so that they are relative to the store path // and invariant of the type of AVM store (WCM or plain) convertToRelativePaths(paths); return paths; } else { return new String[0]; } }
public String[] getAllDocumentPaths() { Response res = callGet(buildEncodeCall(API_LISTALL, "")); if (logger.isDebugEnabled()) logger.debug("RemoteStore.getAllDocumentPaths() " + res.getStatus().getCode()); if (Status.STATUS_OK == res.getStatus().getCode()) { // convert to an array of store root-relative paths List<String> list = new ArrayList<String>(128); StringTokenizer t = new StringTokenizer(res.getResponse(), "\n"); while (t.hasMoreTokens()) { list.add(t.nextToken()); } String[] paths = list.toArray(new String[list.size()]); // truncate paths so that they are relative to the store path // and invariant of the type of AVM store (WCM or plain) convertToRelativePaths(paths); return paths; } else { return new String[0]; } }
public String[] getAllDocumentPaths() { Response res = callGet(buildEncodeCall(API_LISTALL, "")); if (logger.isDebugEnabled()) logger.debug("RemoteStore.getAllDocumentPaths() " + res.getStatus().getCode()); if (Status.STATUS_OK == res.getStatus().getCode()) { // convert to an array of store root-relative paths List<String> list = new ArrayList<String>(128); StringTokenizer t = new StringTokenizer(res.getResponse(), "\n"); while (t.hasMoreTokens()) { list.add(t.nextToken()); } String[] paths = list.toArray(new String[list.size()]); // truncate paths so that they are relative to the store path // and invariant of the type of AVM store (WCM or plain) convertToRelativePaths(paths); return paths; } else { return new String[0]; } }