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

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

There is a newer version: 1.6-RELEASE
Show 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();

	protected Handler next() {
		return null;
	}

	final public HttpServerRequest req() {
		return req;
	}

	final public HttpServerResponse res() {
		return res;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy