@Test public void proxiesOKPuts() { HttpObject subject = new Proxy("http: Request input = new MockRequest(subject, "/frog", HttpObject.Text("Kermie")); Response output = subject.put(input); responseCodeOf(output).assertIs(ResponseCode.OK); assertTrue(contentTypeOf(output).isPlainTextWithEncoding("utf-8")); assertEquals("Kermie", bodyOf(output).asString()); }
@Override public Response put(Request req) { PutMethod m = new PutMethod(); setRequestRepresentation(req, m); return proxyRequest(req, m); }
Proxy extends HttpObject { @Override public Response put(Request req) { PutMethod m = new PutMethod(); setRequestRepresentation(req, m); return proxyRequest(req, m); } }
Proxy extends HttpObject { @Override public Response put(Request req) { PutMethod m = new PutMethod(); setRequestRepresentation(req, m); return proxyRequest(req, m); } Proxy(final String localPath, final String base, final String me);  Proxy(final String base, final String me); }
Proxy extends HttpObject { @Override public Response put(Request req) { PutMethod m = new PutMethod(); setRequestRepresentation(req, m); return proxyRequest(req, m); } Proxy(final String localPath, final String base, final String me);  Proxy(final String base, final String me); void setBase(String base); String getBase(); @Override Response get(Request req); @Override Response delete(Request req); @Override Response put(Request req); @Override Response patch(Request req); @Override Response options(Request req); @Override Response post(Request req); }
Proxy extends HttpObject { @Override public Response put(Request req) { PutMethod m = new PutMethod(); setRequestRepresentation(req, m); return proxyRequest(req, m); } Proxy(final String localPath, final String base, final String me);  Proxy(final String base, final String me); void setBase(String base); String getBase(); @Override Response get(Request req); @Override Response delete(Request req); @Override Response put(Request req); @Override Response patch(Request req); @Override Response options(Request req); @Override Response post(Request req);  }