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

Method toString

src/main/java/org/htmlunit/WebRequest.java:677–690  ·  view source on GitHub ↗

Returns a string representation of this object. @return a string representation of this object

()

Source from the content-addressed store, hash-verified

675 * @return a string representation of this object
676 */
677 @Override
678 public String toString() {
679 final StringBuilder builder = new StringBuilder(100)
680 .append(getClass().getSimpleName())
681 .append("[<url=\"")
682 .append(url_)
683 .append("\", ").append(httpMethod_)
684 .append(", ").append(encodingType_)
685 .append(", ").append(requestParameters_)
686 .append(", ").append(additionalHeaders_)
687 .append(", ").append(credentials_)
688 .append(">]");
689 return builder.toString();
690 }
691
692 private void writeObject(final ObjectOutputStream oos) throws IOException {
693 oos.defaultWriteObject();

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
getClassMethod · 0.45

Tested by

no test coverage detected