private void manipulateResponse(HttpResponse response, HttpRequest request) { for (Spoof spoof : spoofs) { try { spoof.modifyResponse(response, request); } catch (Exception e) { Log.w(TAG, "Manipulate failed", e); } } }
public NSProxy(Context context, List<Spoof> spoofs) { this.spoofs = spoofs; for (Spoof spoof : this.spoofs) { spoof.transientInit(context); } }
private void manipulateRequest(HttpRequest request) { for (Spoof spoof : spoofs) spoof.modifyRequest(request); }