Elffuss BraidHub

kikocis/EDC public

Branch: main
cc2a9ff178c4 fix: return StsClient from create() (#4479) Paul Latzelsperger,
..
src/
README.md1.5 KiB
build.gradle.kts1.3 KiB

README.md

Jersey

This extension provides a Jersey implementation for the WebService service.

Configuration

Parameter nameDescriptionDefault value
edc.web.rest.cors.enabledEnables or disables the CORS filterfalse
edc.web.rest.cors.originsDefines allowed origins for the CORS filter"*"
edc.web.rest.cors.headersDefines allowed headers for the CORS filter"origin, content-type, accept, authorization"
edc.web.rest.cors.methodsDefines allowed methods for the CORS filter"GET, POST, DELETE, PUT, OPTIONS"

Exception handling

The JerseyService provide 3 exception mappers:

  • EdcApiExceptionMapper: catches all the EdcApiException exceptions, map them to a 4xx response code with a detailed response body
  • ValidationExceptionMapper: catches all the ConstraintViolationException exceptions thrown by the jersey-bean-validation module, it maps them to a 400 response code with a detailed response body
  • Exception mapper that catches all the exceptions that are not handled by the other mappers, for example:
    • all the java.lang exceptions
    • jakarta.ws.rs.WebApplicationException and subclasses