/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }
/** * Set the content type for this Response. * * @param type The new content type */ public void setContentType(final ContentType type) { checkResponse(); if (isCommitted()) return; if (type == null) { response.setContentType((String) null); return; } if (!usingWriter) { response.setContentType(type); } else { // Ignore charset if getWriter() has already been called response.setContentType(type.getMimeType()); } }