The setContentType method of the Response class establishes the content type header for the response.
public void setContentType(String strContentType);