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

com.zandero.rest.events.RestEvent Maven / Gradle / Ivy

The newest version!
package com.zandero.rest.events;

import io.vertx.ext.web.RoutingContext;

/**
 * Triggered when REST call is complete ...
 * T being the entity produced by the original method OR writer producing the response
 */
public interface RestEvent {

	void execute(T entity, RoutingContext context) throws Throwable;

	/**
	 * This is a placeholder exception for RestEvent default exception annotation
	 * this exception should never be triggered as it is considered a NOOP exception
	 */
	class NoRestException extends Exception {
		private NoRestException() {
			super("Exception place holder!");
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy