admin 管理员组

文章数量: 1184232


2024年3月29日发(作者:网上国网下载)

} catch (Exception ex) {

return null;

}

}

public class CharsetHandler implements ResponseHandler {

private String charset;

public CharsetHandler(String charset) {

t = charset;

}

public String handleResponse(HttpResponse response)

throws ClientProtocolException, IOException {

StatusLine statusLine = tusLine();

if (tusCode() >= 300) {

throw new HttpResponseException(tusCode(),

sonPhrase());

}

HttpEntity entity = ity();

if (entity != null) {

if (!k(charset)) {

return ng(entity, charset);

} else {

return ng(entity);

}

} else {

return null;

}

}

}

}


本文标签: 作者 下载