conjure-java | Conjure generator for Java clients and servers | Access Management library
kandi X-RAY | conjure-java Summary
kandi X-RAY | conjure-java Summary
Conjure generator for Java clients and servers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Tries to parse an endpoint definition
- Gets the parameter type for a given variable element
- Gets the argument type
- Estimates the case format for the given string
- Generate endpoint handler
- Generate code for return value
- Generate code for an endpoint invocation
- Adds the code to the code block
- Visit a primitive type
- Generate a stream of java files
- Generate factory method
- Creates a hash code for the item list
- Generate methods for final stage field
- Handle exception
- Generate service handler
- Generate the main class method
- Create endpoint parameter
- Generate the error types for a given error namespace
- Get a hash code
- Validate missing fields
- Generate method implementation
- Returns a hash code for the items in the map
- Creates an instance of union type
- Returns a hash code for this object
- Creates a hash code for this request
- Generate service method
conjure-java Key Features
conjure-java Examples and Code Snippets
getEvents:
http: GET /events
returns: list
tags:
- server-async
conjure {
java {
undertowListenableFutures = true
}
}
@Override
public ListenableFuture getValue() {
// Assuming this retrofit client was compiled with --
services:
ExampleService:
name: Example
package: com.palantir.example
base-path: /example
endpoints:
context:
http: GET /ping
returns: string
tags: [server-request-context]
public interface ExampleSer
Usage: conjure-java generate [...options]
Generate Java bindings for a Conjure API
Path to the input IR file
Output directory for generated source
Options:
--objects Generate POJOs for Conjure type definitions
--jers
Community Discussions
Trending Discussions on conjure-java
QUESTION
I have a REST endpoint that basically just uploads a file from the machine making the call to one of our cloud VMs.
When, from the client VM, I make the call with cURL
, it takes ~10s to upload a 100 megabyte file.
When, from the client VM, I make the call with a jaxrs client, it takes ~2m50s to upload a 100 megabyte file.
Client code. I've played with creating a custom SSLSocketFactory, which allows me to turn knobs on SocketOptions, but that isn't in the snippet below.
...ANSWER
Answered 2020-Jan-30 at 17:21So, I'm a little unsatisfied that I don't have more depth to this answer, but here it is.
The JaxRsClient was negotiating HTTP/2. I'm not sure what was going on under the hood, but if GCM ciphers weren't enabled, the only allowed protocol should've been HTTP1.1. Here's the PR that corrected the issue:
https://github.com/palantir/conjure-java-runtime/commit/e52efdc1f66a52c3ee9112ecaae7bb40ac799224
The JaxRsClient, after that change, wouldn't negotiate HTTP/2 if GCM ciphers were NOT enabled. On HTTP/1.1, it matched cURL
and Feign
for speed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install conjure-java
You can use conjure-java like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the conjure-java component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page