/ViaThinkSoft Java Utils/src/de/viathinksoft/utils/http/MyHttpResponse.java |
---|
2,6 → 2,7 |
import java.io.IOException; |
import org.apache.http.Header; |
import org.apache.http.HttpEntity; |
import org.apache.http.HttpResponse; |
import org.apache.http.ParseException; |
38,4 → 39,10 |
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(); |
} |
} |