1
對不起,這可能是一個簡單的答案,但我找不到任何東西。HttpClient參數沒有被添加到執行方法
我目前擁有的方法:
public MediaSource getConvertedMediaServletCall(String format) throws HttpException, IOException{
HttpClient httpclient = new HttpClient();
GetMethod httpGet = new GetMethod(MEDIA_SERVER_URL);
httpGet.getParams().setParameter("format", format);
httpGet.getParams().setParameter("handler", "handle");
try{
int statusCode = httpclient.executeMethod(httpGet);
byte[] responseBody = httpGet.getResponseBody();
現在我知道這做真正做任何事情,這有一次我得到的問題,工作要工作。問題是,我創建了我相信一個執行get方法的http客戶端。現在的問題是當代碼運行時httppath.executeMethod(httpGet); Servlet doGet方法正在執行,我知道這是事實,但參數永遠不會從這個執行方法中傳遞。
Anyhelpwould理解..