/ViaThinkSoft Java Utils/src/de/viathinksoft/utils/http/MyHttpResponse.java |
---|
2,7 → 2,6 |
import java.io.IOException; |
import org.apache.http.Header; |
import org.apache.http.HttpEntity; |
import org.apache.http.HttpResponse; |
import org.apache.http.ParseException; |
39,10 → 38,4 |
public int getStatusCode() { |
return statusCode; |
} |
public String getHeader(String name) { |
Header[] h = response.getHeaders(name); |
if (h.length != 1) return null; |
return h[0].getValue(); |
} |
} |