Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit b0c06d1

Browse files
committed
toString
1 parent 7a0ca2a commit b0c06d1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/handler/ThrottledHandler.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,16 @@ public final void handle(final HttpExchange exchange) throws IOException{
4646
}
4747
}
4848

49+
@Override
50+
public String toString(){
51+
final StringBuilder OUT = new StringBuilder();
52+
53+
OUT.append("ThrottledHandler") .append('{');
54+
OUT.append("handler") .append('=') .append(handler) .append(", ");
55+
OUT.append("throttler") .append('=') .append(throttler);
56+
OUT.append('}');
57+
58+
return OUT.toString();
59+
}
60+
4961
}

0 commit comments

Comments
 (0)