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

io.github.zhyshko.core.router.UpdateRouter Maven / Gradle / Ivy

The newest version!
package io.github.zhyshko.core.router;

import io.github.zhyshko.core.i18n.impl.I18NLabelsWrapper;
import io.github.zhyshko.core.response.ResponseEntity;
import io.github.zhyshko.core.util.UpdateType;
import io.github.zhyshko.core.util.UpdateWrapper;

import java.util.Optional;

public interface UpdateRouter {

    Optional handle(UpdateWrapper wrapper, I18NLabelsWrapper i18NLabelsWrapper) throws Exception;

    void beforeHandle(UpdateWrapper wrapper, I18NLabelsWrapper i18NLabelsWrapper);

    Route getRouteToHandle(UpdateWrapper wrapper);

    void afterHandle(Optional responseEntityOptional,
                     UpdateWrapper wrapper, I18NLabelsWrapper i18NLabelsWrapper);

    UpdateType getType();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy