MCPcopy Create free account
hub / github.com/apache/tomcat / getServerName

Method getServerName

java/jakarta/servlet/ServletRequest.java:287–287  ·  view source on GitHub ↗

Returns the host name of the server to which the request was sent. It is the value of the part before ":" in the Host header value, if any, or the resolved server name, or the server IP address. @return a String containing the name of the server

()

Source from the content-addressed store, hash-verified

285 * @return a <code>String</code> containing the name of the server
286 */
287 String getServerName();
288
289 /**
290 * Returns the port number to which the request was sent. It is the value of the part after ":" in the

Callers 15

doGetMethod · 0.65
invokeMethod · 0.65
serviceMethod · 0.65
serviceMethod · 0.65
buildRequestUriMethod · 0.65
isSameOriginMethod · 0.65
hasUserDataPermissionMethod · 0.65
logMethod · 0.65

Implementers 4

ServletRequestWrapperjava/jakarta/servlet/ServletRequestWra
TesterHttpServletRequesttest/org/apache/catalina/filters/Teste
Requestjava/org/apache/catalina/connector/Req
RequestFacadejava/org/apache/catalina/connector/Req

Calls

no outgoing calls

Tested by 8

doGetMethod · 0.52
invokeMethod · 0.52
serviceMethod · 0.52
serviceMethod · 0.52