Represents a endpoint
Name | Kind | Type | Required | Deprecated | Default Value | Enum Values | Description |
---|---|---|---|---|---|---|---|
protocol | path | java.lang.String | true | false | http https |
The protocol to use which is http or https | |
host | path | java.lang.String | true | false | The hostname of the restlet service | ||
port | path | int | true | false | 80 | The port number of the restlet service | |
uriPattern | path | java.lang.String | true | false | The resource pattern such as /customer/{id} | ||
socketTimeout | parameter | int | false | 30000 | The Client socket receive timeout, 0 for unlimited wait. | ||
connectTimeout | parameter | int | false | 30000 | The Client will give up connection if the connection is timeout, 0 for unlimited wait. | ||
restletMethod | parameter | org.restlet.data.Method | false | GET | On a producer endpoint, specifies the request method to use. On a consumer endpoint, specifies that the endpoint consumes only restletMethod requests. | ||
restletMethods | parameter | org.restlet.data.Method[] | false | Specify one or more methods separated by commas (e.g. restletMethods=post,put) to be serviced by a restlet consumer endpoint. If both restletMethod and restletMethods options are specified, the restletMethod setting is ignored. | |||
restletUriPatterns | parameter | java.util.List |
false | Specify one ore more URI templates to be serviced by a restlet consumer endpoint, using the # notation to
reference a List |
|||
restletRealm | parameter | java.util.Map |
false | To configure the security realms of restlet as a map. | |||
headerFilterStrategy | parameter | org.apache.camel.spi.HeaderFilterStrategy | false | To use a custom HeaderFilterStrategy to filter header to and from Camel message. | |||
restletBinding | parameter | org.apache.camel.component.restlet.RestletBinding | false | To use a custom RestletBinding to bind between Restlet and Camel message. | |||
throwExceptionOnFailure | parameter | boolean | false | true | Whether to throw exception on a producer failure. If this option is false then the http status code is set as a message header which can be checked if it has an error value. | ||
disableStreamCache | parameter | boolean | false | Determines whether or not the raw input stream from Restlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache the Restlet 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. DefaultRestletBinding will copy the request input stream into a stream cache and put it into message body if this option is false to support reading the stream multiple times. | |||
sslContextParameters | parameter | org.apache.camel.util.jsse.SSLContextParameters | false | To configure security using SSLContextParameters. | |||
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). |
A Restlet consumer acts as a server to listen client requests.