Name | Kind | Type | Required | Deprecated | Default Value | Enum Values | Description |
---|---|---|---|---|---|---|---|
verb | path | java.lang.String | true | false | get post put patch delete head trace connect options |
get, post, put, patch, delete, head, trace, connect, or options. | |
path | path | java.lang.String | true | false | The content path which support Spark syntax. | ||
accept | parameter | java.lang.String | false | Accept type such as: 'text/xml', or 'application/json'. By default we accept all kinds of types. | |||
mapHeaders | parameter | boolean | false | true | If this option is enabled, then during binding from Spark to Camel Message then the headers will be mapped as well (eg added as header to the Camel Message as well). You can turn off this option to disable this. The headers can still be accessed from the org.apache.camel.component.sparkrest.SparkMessage message with the method getRequest() that returns the Spark HTTP request instance. | ||
disableStreamCache | parameter | boolean | false | Determines whether or not the raw input stream from Spark HttpRequest#getContent() is cached or not (Camel will read the stream into a in light-weight memory based Stream caching) cache. By default Camel will cache the Netty input stream to support reading it multiple times to ensure Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. Mind that if you enable this option, then you cannot read the Netty stream multiple times out of the box, and you would need manually to reset the reader index on the Spark raw stream. | |||
urlDecodeHeaders | parameter | boolean | false | If this option is enabled, then during binding from Spark to Camel Message then the header values will be URL decoded (eg %20 will be a space character.) | |||
transferException | parameter | boolean | false | If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. | |||
sparkBinding | parameter | org.apache.camel.component.sparkrest.SparkBinding | false | To use a custom SparkBinding to map to/from Camel message. | |||
exchangePattern | parameter | org.apache.camel.ExchangePattern | false | InOnly | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange | |
synchronous | parameter | boolean | false | false | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |