
com.zandero.rest.events.RestEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest.vertx Show documentation
Show all versions of rest.vertx Show documentation
JAX-RS REST annotation processor for vert.x verticals
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