Streaming upload

2016-08-20 Thread Jonas Koperdraat
use Camel to route an HTTP POST request to a Spring bean in such a way that I can the process it in a streaming manner? And if so, how? Any help is greatly appreciated. Kind regards, Jonas Koperdraat

Re: Streaming upload

2016-08-21 Thread Jonas Koperdraat
is that it really shines > for this type of streaming operation. > > http://camel.apache.org/netty4-http.html > > Brad > > On Sat, Aug 20, 2016 at 6:44 AM, Jonas Koperdraat > wrote: > >> Hi, >> >> I am trying to process a multipart/form-data upload in

Re: Access header in camel route

2016-10-05 Thread Jonas Koperdraat
I believe the right way to access a header is either by using ${header.fieldname} or by using the @Header annotation. See http://camel.apache.org/simple.html and http://camel.apache.org/parameter-binding-annotations.html for references. Regards, Jonas On Wed, Oct 5, 2016 at 9:31 AM, axdz wrote

Re: Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread Jonas Koperdraat
The first thing that comes to my mind is CORS (cross origin resource sharing) headers, but I'm not sure whether the restlet component adheres to those.. On Fri, Oct 14, 2016, 15:21 Steve Huston wrote: > Sounds like a firewall (or similar) configuration issue. > > If not, please try posting more

Incorrect context path in camel-swagger-java swagger servlet?

2016-11-02 Thread Jonas Koperdraat
Hi, I have an application deployed at "http://server:port/some/context/path";, with a REST api at "http://server:port/some/context/path/rest";. According to http://camel.apache.org/swagger-java.html, I should configure the 'base.path' and 'api.path' relative to the context path. However, I find t

'host' configuration param not used by servlet

2016-11-02 Thread Jonas Koperdraat
I have a REST API for which I am exposing a swagger definitiion using camel-swagger-java. The application is deployed behind a proxy, because of which I need to change host used in the generated swagger documentation. Currently, the internal hostname of the actual machine is being used, based on th

Re: 'host' configuration param not used by servlet

2016-11-02 Thread Jonas Koperdraat
stURL is a more elegant approach, so thanks for that suggestion! Kind regards, Jonas Op wo 2 nov. 2016 om 15:42 schreef Zoran Regvart : > Hi Jonas, > > On Wed, Nov 2, 2016 at 2:57 PM, Jonas Koperdraat > wrote: > > It seems to me that this is a bug, but I might be mistaken, Is a

Re: 'host' configuration param not used by servlet

2016-11-02 Thread Jonas Koperdraat
sideration when constructing the requestUrl parameter of the SerlvetRequest. So we'll have to manually insert the desired hostname into the request url. Kind regards, Jonas Op wo 2 nov. 2016 om 16:33 schreef Zoran Regvart : > Hi Jonas, > > On Wed, Nov 2, 2016 at 4:25 PM, Jonas Kope

Re: Incorrect context path in camel-swagger-java swagger servlet?

2016-11-07 Thread Jonas Koperdraat
Ibsen : Hi Can you try with Camel 2.18.0 release. On Wed, Nov 2, 2016 at 1:37 PM, Jonas Koperdraat wrote: > Hi, > > I have an application deployed at > "http://server:port/some/context/path";, with a REST api at > "http://server:port/some/context/path

camel-swagger-servlet

2016-11-22 Thread Jonas Koperdraat
Hi, We have multiple REST API's documented with camel-swagger-servlet. These API's have some endpoints that are meant to be public and some that are meant to be private (or internal). Is it possible to filter the private endpoints from the Swagger documentation? And if so, is it possible to have t

Re: camel-swagger-servlet

2016-11-22 Thread Jonas Koperdraat
s Op di 22 nov. 2016 om 13:25 schreef Claus Ibsen : > No you cannot have two versions. > > But I think there was a way to set that an api was internal using the > swagger api to set apiDocs=false on the verbs you dont want > > On Tue, Nov 22, 2016 at 1:03 PM, Jonas Koperdraat