java: set Content-Type on HTTP requests and responses