Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gateleen-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-cache</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.vertx.codegen.annotations.Nullable;
import io.vertx.core.MultiMap;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.http.HttpVersion;
import io.vertx.core.http.impl.headers.HeadersMultiMap;
import io.vertx.core.net.HostAndPort;

Expand All @@ -26,13 +27,23 @@ public class DummyHttpServerRequest extends FastFailHttpServerRequest {
private Charset paramsCharset = StandardCharsets.UTF_8;
private MultiMap params;

@Override
public HttpVersion version() {
return HttpVersion.HTTP_1_0;
}

@Override public boolean isSSL() { return false; }

@Override
public @Nullable HostAndPort authority() {
return null;
}

@Override
public @Nullable HostAndPort authority(boolean real) {
return null;
}

@Override
public String getHeader(String headerName) {
return null;
Expand All @@ -56,8 +67,16 @@ public String getParamsCharset() {

@Override
public MultiMap params() {
return params(false);
}

@Override
public MultiMap params(boolean semicolonIsNormalChar) {
if (params == null) {
QueryStringDecoder queryStringDecoder = new QueryStringDecoder(uri(), paramsCharset);
QueryStringDecoder queryStringDecoder = QueryStringDecoder.builder()
.charset(paramsCharset)
.semicolonIsNormalChar(semicolonIsNormalChar)
.build(uri());
Map<String, List<String>> prms = queryStringDecoder.parameters();
params = new HeadersMultiMap();
if (!prms.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public HttpServerResponse putHeader(CharSequence name, CharSequence value) {
return this;
}

@Override
public Future<Void> writeHead() {
return Future.succeededFuture();
}

@Override
public Future<Void> end(String chunk) {
this.resultBuffer = chunk;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.*;
import io.vertx.core.http.impl.HttpServerRequestInternal;
import io.vertx.core.net.HostAndPort;
import io.vertx.core.net.NetSocket;
import io.vertx.core.net.SocketAddress;

Expand Down Expand Up @@ -72,6 +73,14 @@ public boolean isSSL() {
throw new UnsupportedOperationException( msg );
}

public @Nullable HostAndPort authority() {
throw new UnsupportedOperationException( msg );
}

public @Nullable HostAndPort authority(boolean real) {
throw new UnsupportedOperationException( msg );
}

public @Nullable String scheme() {
throw new UnsupportedOperationException( msg );
}
Expand Down Expand Up @@ -116,6 +125,10 @@ public MultiMap params() {
throw new UnsupportedOperationException( msg );
}

public MultiMap params(boolean semicolonIsNormalChar) {
throw new UnsupportedOperationException( msg );
}

public @Nullable String getParam(String paramName) {
throw new UnsupportedOperationException( msg );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ default HttpServerResponse exceptionHandler(Handler<Throwable> handler) {
throw new UnsupportedOperationException(msg);
}

default Future<Void> writeHead() {
throw new UnsupportedOperationException( msg );
}

default HttpServerResponse setWriteQueueMaxSize(int maxSize) {
throw new UnsupportedOperationException(msg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@
import io.vertx.core.net.SocketAddress;
import io.vertx.core.net.impl.SocketAddressImpl;
import io.vertx.ext.auth.User;
import io.vertx.ext.web.FileUpload;
import io.vertx.ext.web.LanguageHeader;
import io.vertx.ext.web.ParsedHeaderValues;
import io.vertx.ext.web.RequestBody;
import io.vertx.ext.web.Route;
import io.vertx.ext.web.RoutingContext;
import io.vertx.ext.web.Session;
import io.vertx.ext.web.*;
import org.slf4j.Logger;
import org.swisspush.gateleen.core.exception.GateleenExceptionFactory;

Expand Down Expand Up @@ -115,10 +109,23 @@ public String query() {
return null;
}

@Override
public @Nullable HostAndPort authority(boolean real) {
return null;
}

@Override
public MultiMap params() {
return params(false);
}

@Override
public MultiMap params(boolean semicolonIsNormalChar) {
if (params == null) {
QueryStringDecoder queryStringDecoder = new QueryStringDecoder(uri(), paramsCharset);
QueryStringDecoder queryStringDecoder = QueryStringDecoder.builder()
.charset(paramsCharset)
.semicolonIsNormalChar(semicolonIsNormalChar)
.build(uri());
Map<String, List<String>> prms = queryStringDecoder.parameters();
params = new HeadersMultiMap();
if (!prms.isEmpty()) {
Expand Down Expand Up @@ -435,6 +442,11 @@ public User user() {
throw new UnsupportedOperationException();
}

@Override
public UserContext userContext() {
throw new UnsupportedOperationException();
}

@Override
public Throwable failure() {
throw new UnsupportedOperationException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import javax.security.cert.X509Certificate;
import java.security.cert.Certificate;
import java.util.List;
import java.util.concurrent.TimeUnit;

import static org.slf4j.LoggerFactory.getLogger;

Expand Down Expand Up @@ -52,6 +53,11 @@ public Future<Void> shutdown(long timeoutMs) {
throw new UnsupportedOperationException("LocalConnection don't support this");
}

@Override
public Future<Void> shutdown(long timeout, TimeUnit unit) {
throw new UnsupportedOperationException("LocalConnection don't support this");
}

@Override
public HttpConnection closeHandler(Handler<Void> handler) {
/* Q: API contract says: "The handler WILL GET NOTIFIED when the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ public HttpServerResponse closeHandler(Handler<Void> handler) {
return this;
}

@Override
public Future<Void> writeHead() {
throw new UnsupportedOperationException();
}

@Override
public Future<Void> write(String chunk, String enc) {
return write(Buffer.buffer(chunk, enc));
Expand Down
2 changes: 1 addition & 1 deletion gateleen-delegate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-delegate</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-delta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-delta</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-expansion/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-expansion</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-hook-js/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>
<artifactId>gateleen-hook-js</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-hook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-hook</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-kafka</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-logging</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-merge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-merge</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-monitoring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-monitoring</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-packing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-packing</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-player/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-player</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-playground/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-playground</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-qos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-qos</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-queue/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-queue</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-routing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-routing</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-runconfig/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-runconfig</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-scheduler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-scheduler</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-security</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>
<artifactId>gateleen-test</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-testhelper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-testhelper</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gateleen-user/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.swisspush.gateleen</groupId>
<artifactId>gateleen</artifactId>
<version>2.1.38-SNAPSHOT</version>
<version>2.1.39-SNAPSHOT</version>
</parent>

<artifactId>gateleen-user</artifactId>
Expand Down
Loading
Loading