
org.bitbucket.gkutiel.in.Handler Maven / Gradle / Ivy
package org.bitbucket.gkutiel.in;
import io.netty.buffer.ByteBuf;
import io.reactivex.netty.protocol.http.server.HttpServerRequest;
import io.reactivex.netty.protocol.http.server.HttpServerResponse;
@SuppressWarnings("static-method") public abstract class Handler {
static class Stop extends RuntimeException {}
final static T stop() {
throw new Stop();
}
HttpServerRequest req;
HttpServerResponse res;
abstract protected void handle();
final public HttpServerRequest req() {
return req;
}
final public HttpServerResponse res() {
return res;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy