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

Method setDomain

java/jakarta/servlet/http/Cookie.java:145–152  ·  view source on GitHub ↗

Specifies the domain within which this cookie should be presented. By default, cookies are only returned to the server that sent them. @param pattern a String containing the domain name within which this cookie is visible @see #getDomain

(String pattern)

Source from the content-addressed store, hash-verified

143 * @see #getDomain
144 */
145 public void setDomain(String pattern) {
146 if (pattern == null) {
147 setAttributeInternal(DOMAIN, null);
148 } else {
149 // IE requires the domain to be lower case (unconfirmed)
150 setAttributeInternal(DOMAIN, pattern.toLowerCase(Locale.ENGLISH));
151 }
152 }
153
154
155 /**

Callers 6

doTestDomainMethod · 0.95
testCloneMethod · 0.95
invokeMethod · 0.95
createSessionCookieMethod · 0.95
registerMethod · 0.95
invokeMethod · 0.95

Calls 1

setAttributeInternalMethod · 0.95

Tested by 2

doTestDomainMethod · 0.76
testCloneMethod · 0.76