@Test public void getUrl() throws Exception { { HttpRequestMethod httpRequestMethod = HttpRequestMethod.GET; String url = "http: String encoding = "utf-8"; HttpParameter[] parameters = new HttpParameter[]{new HttpParameter("key", "value")}; HttpRequest httpRequest = new HttpRequest(httpRequestMethod, url, encoding, parameters); assertThat(httpRequest.getUrl(), is("http: } { HttpRequestMethod httpRequestMethod = HttpRequestMethod.GET; String url = "http: String encoding = "utf-8"; HttpParameter[] parameters = new HttpParameter[]{ new HttpParameter("key", "value"), new HttpParameter("key2", "value2") }; HttpRequest httpRequest = new HttpRequest(httpRequestMethod, url, encoding, parameters); assertThat(httpRequest.getUrl(), is("http: } { HttpRequestMethod httpRequestMethod = HttpRequestMethod.POST; String url = "http: String encoding = "utf-8"; HttpParameter[] parameters = new HttpParameter[]{ new HttpParameter("key", "value") }; HttpRequest httpRequest = new HttpRequest(httpRequestMethod, url, encoding, parameters); assertThat(httpRequest.getUrl(), is("http: } }
public String getUrl() { return url; }
HttpRequest { public String getUrl() { return url; } }
HttpRequest { public String getUrl() { return url; } HttpRequest(HttpRequestMethod httpRequestMethod, String url, String content);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, String encoding, String content);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, HttpParameter... parameters);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, String encoding, HttpParameter... parameters); }
HttpRequest { public String getUrl() { return url; } HttpRequest(HttpRequestMethod httpRequestMethod, String url, String content);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, String encoding, String content);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, HttpParameter... parameters);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, String encoding, HttpParameter... parameters); HttpRequestMethod getHttpRequestMethod(); String getUrl(); HttpParameter[] getParameters(); void addParameters(HttpParameter... parameters); void addParameter(HttpParameter parameter); String getEncoding(); String getContent(); }
HttpRequest { public String getUrl() { return url; } HttpRequest(HttpRequestMethod httpRequestMethod, String url, String content);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, String encoding, String content);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, HttpParameter... parameters);  HttpRequest(HttpRequestMethod httpRequestMethod, String url, String encoding, HttpParameter... parameters); HttpRequestMethod getHttpRequestMethod(); String getUrl(); HttpParameter[] getParameters(); void addParameters(HttpParameter... parameters); void addParameter(HttpParameter parameter); String getEncoding(); String getContent();  }