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

Commit 4788a57

Browse files
committed
Fix toString
1 parent fe4f21a commit 4788a57

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpCookie.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public final String toCookieHeaderString(){
9797
public String toString(){
9898
return
9999
"SimpleHttpCookie" + '{' +
100-
"name" + '=' + name + ", " +
101-
"value" + '=' + value + ", " +
102-
"expires" + '=' + expires + ", " +
103-
"maxAge" + '=' + maxAge + ", " +
104-
"domain" + '=' + domain + ", " +
105-
"path" + '=' + path + ", " +
106-
"secure" + '=' + secure + ", " +
107-
"httpOnly" + '=' + httpOnly + ", " +
108-
"sameSite" + '=' + sameSite +
100+
"name" + '=' + '\'' + name + '\'' + ", " +
101+
"value" + '=' + '\'' + value + '\'' + ", " +
102+
"expires" + '=' + expires + ", " +
103+
"maxAge" + '=' + maxAge + ", " +
104+
"domain" + '=' + '\'' + domain + '\'' + ", " +
105+
"path" + '=' + '\'' + path + '\'' + ", " +
106+
"secure" + '=' + secure + ", " +
107+
"httpOnly" + '=' + httpOnly + ", " +
108+
"sameSite" + '=' + '\'' + sameSite + '\'' +
109109
'}';
110110
}
111111

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpExchangeImpl.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -462,26 +462,26 @@ public synchronized final void setAttribute(final String name, final Object valu
462462
@Override
463463
public String toString(){
464464
return
465-
"SimpleHttpExchange" + '{' +
466-
"httpServer" + '=' + httpServer + ", " +
467-
"httpExchange" + '=' + httpExchange + ", " +
468-
"URI" + '=' + URI + ", " +
469-
"publicAddress" + '=' + publicAddr + ", " +
470-
"localAddress" + '=' + localAddr + ", " +
471-
"httpContext" + '=' + httpContext + ", " +
472-
"httpPrincipal" + '=' + httpPrincipal + ", " +
473-
"protocol" + '=' + protocol + ", " +
474-
"requestHeaders" + '=' + requestHeaders + ", " +
475-
"requestMethod" + '=' + requestMethod + ", " +
476-
"responseHeaders" + '=' + getResponseHeaders() + ", " +
477-
"responseCode" + '=' + getResponseCode() + ", " +
478-
"rawGet" + '=' + rawGet + ", " +
479-
"getMap" + '=' + getMap + ", " +
480-
"hasGet" + '=' + hasGet + ", " +
481-
"rawPost" + '=' + rawPost + ", " +
482-
"postMap" + '=' + postMap + ", " +
483-
"hasPost" + '=' + hasPost + ", " +
484-
"cookies" + '=' + cookies +
485-
'}';
465+
"SimpleHttpExchange" + '{' +
466+
"httpServer" + '=' + httpServer + ", " +
467+
"httpExchange" + '=' + httpExchange + ", " +
468+
"URI" + '=' + URI + ", " +
469+
"publicAddress" + '=' + publicAddr + ", " +
470+
"localAddress" + '=' + localAddr + ", " +
471+
"httpContext" + '=' + httpContext + ", " +
472+
"httpPrincipal" + '=' + httpPrincipal + ", " +
473+
"protocol" + '=' + '\'' + protocol + '\'' + ", " +
474+
"requestHeaders" + '=' + requestHeaders + ", " +
475+
"requestMethod" + '=' + requestMethod + ", " +
476+
"responseHeaders" + '=' + getResponseHeaders() + ", " +
477+
"responseCode" + '=' + getResponseCode() + ", " +
478+
"rawGet" + '=' + '\'' + rawGet + '\'' + ", " +
479+
"getMap" + '=' + getMap + ", " +
480+
"hasGet" + '=' + hasGet + ", " +
481+
"rawPost" + '=' + '\'' + rawPost + '\'' + ", " +
482+
"postMap" + '=' + postMap + ", " +
483+
"hasPost" + '=' + hasPost + ", " +
484+
"cookies" + '=' + cookies +
485+
'}';
486486
}
487487
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final void handle(final SimpleHttpExchange exchange) throws IOException{
5050
public String toString(){
5151
return
5252
"RedirectHandler" + '{' +
53-
"link" + '=' + link +
53+
"link" + '=' + '\'' + link + '\'' +
5454
'}';
5555
}
5656

0 commit comments

Comments
 (0)