@Test public void getEncoding() 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.getEncoding(), is("utf-8")); } { HttpRequestMethod httpRequestMethod = HttpRequestMethod.GET; String url = "http: HttpParameter[] parameters = new HttpParameter[]{new HttpParameter("key", "value")}; HttpRequest httpRequest = new HttpRequest(httpRequestMethod, url, parameters); assertThat(httpRequest.getEncoding(), is("utf-8")); } }
public String getEncoding() { return encoding; }
HttpRequest { public String getEncoding() { return encoding; } }
HttpRequest { public String getEncoding() { return encoding; } 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 getEncoding() { return encoding; } 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 getEncoding() { return encoding; } 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();  }