ivanayov and alexellis Add getPath to Java8 template
Since OpenFaaS now supports path parameters we should update the
template to be able to use path for passing them. Until now this
was supported only by the body or by query

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
Latest commit a66436c Oct 2, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
entrypoint Add getPath to Java8 template Nov 23, 2018
function Update HandlerTest.java Jul 17, 2018
gradle/wrapper Add Java8 template Jul 16, 2018
model Add getPath to Java8 template Nov 23, 2018
Dockerfile Bump of-watchdog version to 0.4.2 Nov 11, 2018
README.md Add Java8 template Jul 16, 2018
build.gradle Add Java8 template Jul 16, 2018
settings.gradle Add Java8 template Jul 16, 2018
template.yml Add Java8 template Jul 16, 2018

README.md

Template: java8

The Java8 template uses gradle as a build system.

Gradle version: 4.8.1

Structure

There are three projects which make up a single gradle build:

  • model - (Library) classes for parsing request/response
  • function - (Library) your function code as a developer, you will only ever see this folder
  • entrypoint - (App) HTTP server for re-using the JVM between requests

Handler

The handler is written in the ./src/main/Handler.java folder

Tests are supported with junit via files in ./src/test

External dependencies

External dependencies can be specified in ./build.gradle in the normal way using jcenter, a local JAR or some other remote repository.