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

info.unterrainer.commons.httpserver.extensions.delegates.PostGetSingleSync Maven / Gradle / Ivy

There is a newer version: 0.3.14
Show newest version
package info.unterrainer.commons.httpserver.extensions.delegates;

import info.unterrainer.commons.rdbutils.entities.BasicJpa;
import info.unterrainer.commons.serialization.jsons.BasicJson;
import io.javalin.http.Context;

public interface PostGetSingleSync

{ /** * Allows you to execute code after fetching of an item. *

* Returning {@code null} will abort. So be sure to return something (status...) * in that case using the {@link Context}. * * @param ctx the Javalin context * @param entityManager the entity-manager you can use to get the active * transaction, if any * @param receivedId the ID of the item that was fetched * @param readJpa the JPA that was read based on the received ID * @param response the JSON that will be sent as a response * @return the JSON that will be sent as a response */ J handle(Context ctx, E entityManager, Long receivedId, P readJpa, J response); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy