org.bitbucket.gkutiel.in.Handler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of in-core Show documentation
Show all versions of in-core Show documentation
core components for web framework
The newest version!
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;
}
}