diff --git a/core/src/main/java/net/cactusthorn/routing/Response.java b/core/src/main/java/net/cactusthorn/routing/Response.java index d05f435..ee17538 100644 --- a/core/src/main/java/net/cactusthorn/routing/Response.java +++ b/core/src/main/java/net/cactusthorn/routing/Response.java @@ -113,6 +113,8 @@ private Builder() { * Sets the status code for this response. * * @param statusCode the status code + * + * @return the updated builder */ public Builder setStatus(int statusCode) { statuscode = statusCode; @@ -150,6 +152,7 @@ public Builder skipProducer() { * * @param cookie the Cookie to return to the client * + * @return the updated builder */ public Builder addCookie(Cookie cookie) { cookies.add(cookie); @@ -165,6 +168,8 @@ public Builder addCookie(Cookie cookie) { * @param value the header value If it contains octet string, it should be * encoded according to RFC 2047 * (http://www.ietf.org/rfc/rfc2047.txt) + * + * @return the updated builder */ public Builder setHeader(String name, String value) { List list = new ArrayList<>(); @@ -182,6 +187,8 @@ public Builder setHeader(String name, String value) { * should be encoded according to RFC 2047 * (http://www.ietf.org/rfc/rfc2047.txt) * + * @return the updated builder + * * @see #setHeader */ public Builder addHeader(String name, String value) { @@ -201,6 +208,8 @@ public Builder addHeader(String name, String value) { * * @param name the name of the header * @param value the assigned integer value + * + * @return the updated builder */ public Builder setIntHeader(String name, int value) { List list = new ArrayList<>(); @@ -216,6 +225,8 @@ public Builder setIntHeader(String name, int value) { * @param name the name of the header * @param value the assigned integer value * + * @return the updated builder + * * @see #setIntHeader */ public Builder addIntHeader(String name, int value) { @@ -238,8 +249,7 @@ public Builder addIntHeader(String name, int value) { * @param name the name of the header to set * @param date the assigned date value * - * @see #containsHeader - * @see #addDateHeader + * @return the updated builder */ public Builder setDateHeader(String name, long date) { List list = new ArrayList<>(); @@ -257,6 +267,8 @@ public Builder setDateHeader(String name, long date) { * @param name the name of the header to set * @param date the additional date value * + * @return the updated builder + * * @see #setDateHeader */ public Builder addDateHeader(String name, long date) { diff --git a/demo-jetty/pom.xml b/demo-jetty/pom.xml index f6c9042..0e353e4 100644 --- a/demo-jetty/pom.xml +++ b/demo-jetty/pom.xml @@ -14,6 +14,10 @@ jar Routing :: Demo Jetty + + true + + diff --git a/pom.xml b/pom.xml index fd1214a..3787a60 100644 --- a/pom.xml +++ b/pom.xml @@ -8,10 +8,29 @@ root 0.23 pom - Routing :: Root + Routing :: Root + Lightweight Java library for HTTP requests routing https://github.com/Gmugra/net.cactusthorn.routing + + + BSD 3-Clause License + https://github.com/Gmugra/net.cactusthorn.routing/blob/main/LICENSE + repo + + + + + Alexei Khatskevich + + + + + https://github.com/Gmugra/net.cactusthorn.routing + scm:git:https://github.com/Gmugra/net.cactusthorn.routing.git + + yyyy-MM-dd'T'HH:mm:ss'Z' @@ -42,6 +61,7 @@ 3.3.0 0.8.6 3.2.1 + 3.2.0 3.0.0-M3 3.0.0 3.9.1 @@ -252,6 +272,11 @@ ${plugin.install} + + maven-javadoc-plugin + ${plugin.javadoc} + + maven-jar-plugin ${plugin.jar} @@ -404,6 +429,25 @@ + + javadoc + + + + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + + +