All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bitbucket.gkutiel.in.Handler Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy