MCPcopy Index your code
hub / github.com/apache/tomcat / setContentType

Method setContentType

java/jakarta/servlet/ServletResponse.java:230–230  ·  view source on GitHub ↗

Sets the content type of the response being sent to the client, if the response has not been committed yet. The given content type may include a character encoding specification, for example, text/html;charset=UTF-8 . The response's character encoding is only set from the given content t

(String type)

Source from the content-addressed store, hash-verified

228 * @see #getWriter
229 */
230 void setContentType(String type);
231
232 /**
233 * Sets the preferred buffer size for the body of the response. The servlet container will use a buffer at least as

Callers 15

runMethod · 0.95
runMethod · 0.95
doGetMethod · 0.65
doGetMethod · 0.65
doGetMethod · 0.65
doGetMethod · 0.65
renderHTMLMethod · 0.65
renderJSONMethod · 0.65
doGetMethod · 0.65
doGetMethod · 0.65
serviceMethod · 0.65
serviceMethod · 0.65

Implementers 4

ServletResponseWrapperjava/jakarta/servlet/ServletResponseWr
TesterHttpServletResponsetest/org/apache/catalina/filters/Teste
Responsejava/org/apache/catalina/connector/Res
ResponseFacadejava/org/apache/catalina/connector/Res

Calls

no outgoing calls

Tested by 15

runMethod · 0.76
runMethod · 0.76
doGetMethod · 0.52
doGetMethod · 0.52
doGetMethod · 0.52
doGetMethod · 0.52
doGetMethod · 0.52
doGetMethod · 0.52
doGetMethod · 0.52
doGetMethod · 0.52
serviceMethod · 0.52
doGetMethod · 0.52