Lines Matching refs:requestPath

174             String requestPath, byte[] responseData,
181 mResponseMap.put(requestPath, new Response(
183 mResponseCountMap.put(requestPath, Integer.valueOf(0));
184 mLastRequestMap.put(requestPath, null);
186 return getResponseUrl(requestPath);
194 * @param requestPath The path to respond to.
195 * @return The full URL including the requestPath.
197 public String getResponseUrl(String requestPath) {
198 return mServerUri + requestPath;
204 * @param requestPath The path to respond to.
209 String requestPath) {
210 return setResponseInternal(requestPath, "".getBytes(), null, null,
218 * @param requestPath The path to respond to.
226 String requestPath, String responseString,
228 return setResponseInternal(requestPath, responseString.getBytes(), responseHeaders, null,
237 * @param requestPath The path to respond to.
248 String requestPath, String responseString, List<Pair<String, String>> responseHeaders,
251 requestPath, responseString.getBytes(), responseHeaders, responseAction,
258 * @param requestPath The path to respond to.
264 String requestPath, String targetPath) {
268 return setResponseInternal(requestPath, targetPath.getBytes(), responseHeaders, null,
276 * @param requestPath The path to respond to.
285 String requestPath, String base64EncodedResponse,
288 requestPath, Base64.decode(base64EncodedResponse, Base64.DEFAULT),
295 public int getRequestCount(String requestPath) {
298 count = mResponseCountMap.get(requestPath);
300 if (count == null) throw new IllegalArgumentException("Path not set: " + requestPath);
307 public HttpRequest getLastRequest(String requestPath) {
309 if (!mLastRequestMap.containsKey(requestPath))
310 throw new IllegalArgumentException("Path not set: " + requestPath);
311 return mLastRequestMap.get(requestPath);