Questions tagged [jooby]

Jooby is a Java 8+ and Kotlin library for writing HTTP web APIs.

Jooby is a Java 8+ and Kotlin library aimed at writing web APIs using a fluent API-like syntax.

16 questions
1
vote
1 answer

Where I can get jooq and jdbc modules for jooby 2.10.0?

I'm trying to use implementation("io.jooby:jooby-jooq:2.10.0") implementation("io.jooby:jooby-jdbc:2.10.0") with repositories { mavenCentral() mavenLocal() gradlePluginPortal() google() } but get "Could not find..." gradle…
advortsov
  • 196
  • 2
  • 8
1
vote
1 answer

Jooby Query Param Value

Here is the resource class as the earlier dependency is Jooby. How to add a new query param value which can by default false if not passed and 1st parameter is mandatory import javax.ws.rs.QueryParam; import javax.ws.rs.DefaultValue; import…
CodeCool
  • 193
  • 2
  • 12
1
vote
1 answer

How to load a big file from network in web server without any impact on performance?

I have a web server (Java + Jooby + undertow), which needs to load a big data model (about 200MB) from aws s3 periodically. And I've also done what I could to avoid the gc issue: every time the big binary data is loaded to a pre-allocated…
Russell Bie
  • 341
  • 2
  • 11
1
vote
1 answer

How to use jooby-hbv validation

I want to use jooby validation I looked through https://jooby.org/doc/hbv/ but I can't use it
1
vote
1 answer

Joobie: How to properly unit test a route that returns different content depending on MediaType?

I am currently experimenting with writing webapps/apis using Jooby. I have it set up with an endpoint that returns account data, either as HTML or as JSON depending on the accept header value. This endpoint works and returns the correct…
Grant
  • 438
  • 2
  • 13
1
vote
1 answer

Jooby Webserver Always throwing error "406 Not acceptable: text/html"

I'm setting up a simple Jooby Webserver. I have a App.java and a home.html file. For now, the only thing i want it to do, is that if you open the home page it shows a html page saying "Hello World". However, I'm always getting the error…
abilnf
  • 67
  • 8
1
vote
1 answer

Converting node to object

What is the proper way to convert StatementResult of Neo4j session execution to a proper object or at least a Json assuming I don't have access to SessionFactory ? I am doing it like this and it looks clumsy and verbose: var session =…
lapots
  • 12,553
  • 32
  • 121
  • 242
1
vote
2 answers

Is it possible to access request.body multiple times in jooby/java

Mutant first = request.body(); Mutant second = request.body(); log.info("First: {}, Second: {}", first, Strings.isNullOrEmpty(second.value()) ? "None": second.value() ); yelds First: {..my content..}, Second: None Updated: Jooby library,…
Vera
  • 51
  • 1
  • 6
0
votes
0 answers

Java: Got Jersey's ContainerException when receiving formdata, but fine when received raw JSON data

I'm currently working on a plugin for Killbill, using Jooby for developing the servlet. The servlet will receive a notification from payment gateway and process the update into internal Killbill system @Singleton public class NotificationServlet { …
Muhamad Iqbal
  • 742
  • 1
  • 4
  • 17
0
votes
0 answers

Custom config file cannot be found in JAR (Jooby application)

I am trying to build an executeable JAR with a custom config file. In Eclpise all is working fine but in the jar file the config file is missing. I tried it in different ways. I put the application.conf in directory "Conf" and in "Resources". In…
Buzz
  • 315
  • 6
  • 18
0
votes
2 answers

Make netty server on localhost accesable over internet

I have developed a Jooby-Application which is hosted on a netty server. I can access the application on localhost and tests were fine. Now I want to make the app accessable over internet and dont know what is the best way to reach this goal? The…
Buzz
  • 315
  • 6
  • 18
0
votes
1 answer

How to write rest to upload multiple file by using jooby

Is it possible to write REST request to upload multiple file? I searched Stack Overflow but I couldn't find anything?
0
votes
1 answer

Securing Rest APIs

I have two set of RestAPIs used for same application developed on two different frameworks. One on SpringBoot secured using OAuth 2. Second set of APIs developed on Jooby microframework of RestAPIs. Since the services on Jooby are not secure how…
0
votes
1 answer

integration testing of Jooby application using Spock

I've got pretty simple application that uses Jooby as web framework. Its class responsible for REST looks like this class Sandbox : Kooby ({ path("/sandbox") { get { val environment =…
lapots
  • 12,553
  • 32
  • 121
  • 242
-1
votes
1 answer

CORS works except when custom header is set on client

Config Jooby Version: 2.13.0 Using Undertow JDK 17 My setup of CORS works as expected (with only 1 exception) with the config below: Cors cors = new Cors().setMethods("GET", "POST", "PUT", "DELETE",…
Tutan
  • 11
  • 3
1
2