MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / toString

Method toString

src/main/java/org/htmlunit/http/Cookie.java:215–224  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

213 * {@inheritDoc}
214 */
215 @Override
216 public String toString() {
217 return getName() + "=" + getValue()
218 + (getDomain() == null ? "" : ";domain=" + getDomain())
219 + (getPath() == null ? "" : ";path=" + getPath())
220 + (getExpires() == null ? "" : ";expires=" + getExpires())
221 + (isSecure() ? ";secure" : "")
222 + (isHttpOnly() ? ";httpOnly" : "")
223 + (getSameSite() == null ? "" : ";sameSite=" + getSameSite());
224 }
225
226 /**
227 * {@inheritDoc}

Callers 7

stringMethod · 0.95
decodeFormFieldsMethod · 0.45
toQueryFormFieldsMethod · 0.45
encodeFormFieldsMethod · 0.45
parseTokenMethod · 0.45
matchMethod · 0.45
SvgElementFactoryClass · 0.45

Calls 8

getNameMethod · 0.95
getValueMethod · 0.95
getDomainMethod · 0.95
getPathMethod · 0.95
getExpiresMethod · 0.95
isSecureMethod · 0.95
isHttpOnlyMethod · 0.95
getSameSiteMethod · 0.95

Tested by 1

stringMethod · 0.76