private String formatRequest(String request) throws YAPI_Exception { String[] words = request.split(" "); if (words.length < 2) { throw new YAPI_Exception( YAPI.INVALID_ARGUMENT, "Invalid request, not enough words; expected a method name and a URL"); } String relativeUrl = words[1]; if (relativeUrl.charAt(0) != '/') { relativeUrl = "/" + relativeUrl; } return String.format("%s %s%s", words[0], _wpRec.getNetworkUrl(), relativeUrl); }
String getRelativePath() { return _wpRec.getNetworkUrl(); }