@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", mimeType, this::setContentType); before("", mimeType, authenticationHelper::checkAdminUserAnd403); before("", this::verifyContentType); before("/*", mimeType, this::setContentType); before("/*", mimeType, authenticationHelper::checkAdminUserAnd403); before(PREFLIGHT_PATH, this::setMultipartUpload); post(PREFLIGHT_PATH, mimeType, this::preflight); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", mimeType, this::setContentType); before("/*", mimeType, this::setContentType); before("", this::verifyConfirmHeader); before("/*", this::verifyConfirmHeader); before("", mimeType, apiAuthenticationHelper::checkAdminUserAnd403); before("/*", mimeType, apiAuthenticationHelper::checkAdminUserAnd403); post("", mimeType, this::create); }); }
@Override public void setupRoutes() { path(Routes.ServerHealthMessages.BASE, () -> { before("", this::setContentType); before("/*", this::setContentType); before("", apiAuthenticationHelper::checkUserAnd403); before("/*", apiAuthenticationHelper::checkUserAnd403); get("", this::show); head("", this::show); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", mimeType, this::setContentType); before("/*", mimeType, this::setContentType); before("", this::verifyContentType); before("/*", this::verifyContentType); before(Export.PIPELINES_PATH, mimeType, apiAuthenticationHelper::checkPipelineGroupAdminUserAnd403); get(Export.PIPELINES_PATH, mimeType, this::exportPipeline); exception(RecordNotFoundException.class, this::notFound); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", this::setContentType); before("/*", this::setContentType); before("", mimeType, apiAuthenticationHelper::checkPipelineGroupOperateUserAnd403); before("/*", mimeType, apiAuthenticationHelper::checkPipelineGroupOperateUserAnd403); get("", this::search); head("", this::search); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", this::setContentType); before("/*", this::setContentType); before("", mimeType, apiAuthenticationHelper::checkAdminUserOrGroupAdminUserAnd403); before("/*", mimeType, apiAuthenticationHelper::checkAdminUserOrGroupAdminUserAnd403); get(Routes.ElasticProfileAPI.ID + Routes.ElasticProfileAPI.USAGES, mimeType, this::usages); exception(RecordNotFoundException.class, this::notFound); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", mimeType, this::setContentType); before("/*", mimeType, this::setContentType); before("", this::verifyContentType); before("/*", this::verifyContentType); get(Routes.PipelineSelection.PIPELINES_DATA, mimeType, this::pipelinesData); get("", mimeType, this::show); put("", mimeType, this::update); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserAnd403); get("", this::index, engine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserAnd403); get("", this::index, engine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserAnd403); get("", this::index, engine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserOrGroupAdminUserAnd403); get("", this::index, engine); }); }
public void init() { before("/*", (request, response) -> request.attribute(TIMER_START, new RuntimeHeaderEmitter(request, response))); before("/*", (request, response) -> response.header("Cache-Control", "max-age=0, private, must-revalidate")); controllers.forEach(SparkSpringController::setupRoutes); sparkControllers.forEach(SparkController::setupRoutes); exception(JsonParseException.class, this::invalidJsonPayload); exception(UnprocessableEntityException.class, this::unprocessableEntity); afterAfter("/*", (request, response) -> request.<RuntimeHeaderEmitter>attribute(TIMER_START).render()); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkUserAnd403); get("", this::index, engine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserAnd403); get("", this::index, templateEngine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserOrGroupAdminUserAnd403); get("", this::index, engine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserAnd403); get("", this::index, engine); }); }
@Override public void setupRoutes() { path(controllerBasePath(), () -> { before("", authenticationHelper::checkAdminUserAnd403); get("", this::index, engine); }); }