shareManager = $shareManager; } /** * @param Controller $controller * @param string $methodName * @throws S2SException */ public function beforeController($controller, $methodName) { if (!($controller instanceof ShareInfoController)) { return; } if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) { throw new S2SException(); } } /** * @param Controller $controller * @param string $methodName * @param \Exception $exception * @throws \Exception * @return Response */ public function afterException($controller, $methodName, \Exception $exception) { if (!($controller instanceof ShareInfoController)) { throw $exception; } if ($exception instanceof S2SException) { return new JSONResponse([], Http::STATUS_NOT_FOUND); } throw $exception; } /** * @param Controller $controller * @param string $methodName * @param Response $response * @return Response */ public function afterController($controller, $methodName, Response $response) { if (!($controller instanceof ShareInfoController)) { return $response; } if (!($response instanceof JSONResponse)) { return $response; } $data = $response->getData(); $status = 'error'; if ($response->getStatus() === Http::STATUS_OK) { $status = 'success'; } $response->setData([ 'data' => $data, 'status' => $status, ]); return $response; } } deprecation-warning-20241105 Vaadin 6, 7, 8 is a Java framework for modern Java web applications: https://github.com/vaadin/frameworkwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/getting-started/chapter-getting-started.asciidoc
blob: 687029adaafa362a69334dc11e4cc91f21feb5c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[[getting-started]]
== Creating a Vaadin Application

This chapter gives practical instructions for creating a Vaadin application project and deploying it to a server to run it. We also consider topics such as debugging.

The instructions are given separately for the Eclipse IDE, NetBeans, and IntelliJ IDEA.

include::getting-started-overview.adoc[leveloffset=+2]

include::getting-started-libraries.asciidoc[leveloffset=+2]

include::getting-started-archetypes.asciidoc[leveloffset=+2]

include::getting-started-first-project.asciidoc[leveloffset=+2]

include::getting-started-netbeans.asciidoc[leveloffset=+2]

include::getting-started-idea.asciidoc[leveloffset=+2]

include::getting-started-maven.asciidoc[leveloffset=+2]

include::getting-started-package.asciidoc[leveloffset=+2]

include::getting-started-scala.asciidoc[leveloffset=+2]