camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <souciance.eqdam.ras...@gmail.com>
Subject Re: Validation Empty Body Request In Rest DSL
Date Thu, 19 Jan 2017 19:40:58 GMT
.when().body().isEqualsTo(")...something like that.

On Thu, Jan 19, 2017 at 7:16 PM, alaa.abuzaghleh [via Camel] <
ml-node+s465427n5792825h38@n5.nabble.com> wrote:

> Hi ,
> I am trying to unmarshal JSON request to object I have, everything work
> fine if I provide the JSON but I got org.apache.camel.InvalidPayloadException:
> No body available of type: java.io.InputStream when I provide empty request
> body. Is there anyway in REST DSL allow me to validate the empty request
> body before i do the unmarshal and provide the user with suitable error
> message.
> thank you very much for you help
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Validation-Empty-Body-
> Request-In-Rest-DSL-tp5792825.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Validation-Empty-Body-Request-In-Rest-DSL-tp5792825p5792832.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message