Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

See this blog entry by David Greco who contributed this component to Apache Camel, for a full sample.

Options

Div
classconfluenceTableSmall
Wiki Markup
{div:class=confluenceTableSmall} || Name || Default Value || Description || | {{resourceBase}} | | The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. Classpath is required for OSGI deployment where the resources are packaged in the jar. Notice this option has been renamed to {{baseResource}} from *Camel 2.7* onwards. | | {{baseResource}} | | *Camel 2.7:* The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. Classpath is required for OSGI deployment where the resources are packaged in the jar | | {{timeout}} | {{240000}} | The server side poll timeout in milliseconds. This is how long the server will hold a reconnect request before responding. | | {{interval}} | {{0}} | The client side poll timeout in milliseconds. How long a client will wait between reconnects | | {{maxInterval}} | {{30000}} | The max client side poll timeout in milliseconds. A client will be removed if a connection is not received in this time. | | {{multiFrameInterval}} | {{1500}} | The client side poll timeout, if multiple connections are detected from the same browser. | | {{jsonCommented}} | {{true}} | If {{true}}, the server will accept JSON wrapped in a comment and will generate JSON wrapped in a comment. This is a defence against Ajax Hijacking. | | {{logLevel}} | {{1}} | {{0}}=none, {{1}}=info, {{2}}=debug. | | sslContextParameters | | *Camel 2.9:* Reference to a {{

Name

Default Value

Description

resourceBase

 

The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. Classpath is required for OSGI deployment where the resources are packaged in the jar. Notice this option has been renamed to baseResource from Camel 2.7 onwards.

baseResource

 

Camel 2.7: The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. Classpath is required for OSGI deployment where the resources are packaged in the jar

timeout

240000

The server side poll timeout in milliseconds. This is how long the server will hold a reconnect request before responding.

interval

0

The client side poll timeout in milliseconds. How long a client will wait between reconnects

maxInterval

30000

The max client side poll timeout in milliseconds. A client will be removed if a connection is not received in this time.

multiFrameInterval

1500

The client side poll timeout, if multiple connections are detected from the same browser.

jsonCommented

true

If true, the server will accept JSON wrapped in a comment and will generate JSON wrapped in a comment. This is a defence against Ajax Hijacking.

logLevel

1

0=none, 1=info, 2=debug.

sslContextParameters

 

Camel 2.9: Reference to a

org.apache.camel.util.jsse.SSLContextParameters

}}

in

the

[|http://camel.apache.org/registry.html].  This reference overrides any configured SSLContextParameters at the component level.  See [Using the JSSE Configuration Utility|CAMEL:Camel Configuration Utilities]. \\ | | {{crossOriginFilterOn}} | {{false}} | *Camel 2.10:* If {{true}}, the server will support for cross-domain filtering | | {{allowedOrigins}} | {{*}} | *Camel 2.10:* The origins domain that support to cross, if the {{crosssOriginFilterOn}} is {{true}} | | {{filterPath}} | | *Camel 2.10:* The filterPath will be used by the CrossOriginFilter, if the {{crosssOriginFilterOn}} is {{true}} | | {{disconnectLocalSession}} | {{true}} | *Camel

.  This reference overrides any configured SSLContextParameters at the component level.  See Using the JSSE Configuration Utility.

crossOriginFilterOn

false

Camel 2.10: If true, the server will support for cross-domain filtering

allowedOrigins

*

Camel 2.10: The origins domain that support to cross, if the crosssOriginFilterOn is true

filterPath

 

Camel 2.10: The filterPath will be used by the CrossOriginFilter, if the crosssOriginFilterOn is true

disconnectLocalSession

true

Camel 2.10.5/2.11.1:

(Producer

only)

*

:

Whether

to

disconnect

local

sessions

after

publishing

a

message

to

its

channel.

Disconnecting

local

session

is

needed

as

they

are

not

swept

by

default

by

CometD,

and

therefore

you

can

run

out

of

memory.

| {div}

You can append query options to the URI in the following format, ?option=value&option=value&...

...