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

...

The camel-urlrewrite component offers the following options

Div
classconfluenceTableSmall
Wiki Markup
{div:class=confluenceTableSmall} || Name || Default Value || Description || | {{conf}} | {{null}} | To use a custom {{

Name

Default Value

Description

conf

null

To use a custom

org.tuckey.web.filters.urlrewrite.Conf

}}

as

the

configuration

for

the

url

rewrite

filter.

| | {{configFile}} | {{null}} | Refers to a file name to load as the configuration file. The file should be XML file. | | {{modRewriteConfFile}} | {{null}} | Refers to a file name to load as the Apache mod_rewrite style based configuration file. This file should be a plain text file. | | {{modRewriteConfText}} | {{null}} | Is used to quickly configure a Apache mod_rewrite style based configuration without using a file. | | {{useQueryString}} | {{false}} | Whether to use query strings in the url rewrite rules. | | {{useContext}} | {{false}} | Whether to include context-path or not in the matching. Will be default remove the context-path. | | {{defaultMatchType}} | {{"regex"}} | Which match type to use. Can be either "wildcard" or "regex". | | {{decodeUsing}} | {{null}} | To use a specific encoding such as "utf-8" or

configFile

null

Refers to a file name to load as the configuration file. The file should be XML file.

modRewriteConfFile

null

Refers to a file name to load as the Apache mod_rewrite style based configuration file. This file should be a plain text file.

modRewriteConfText

null

Is used to quickly configure a Apache mod_rewrite style based configuration without using a file.

useQueryString

false

Whether to use query strings in the url rewrite rules.

useContext

false

Whether to include context-path or not in the matching. Will be default remove the context-path.

defaultMatchType

"regex"

Which match type to use. Can be either "wildcard" or "regex".

decodeUsing

null

To use a specific encoding such as "utf-8" or "iso-8859-1".

| {div}

Usage

The following component producers supports using together with the camel-urlrewrite component: Http, Http4 and Jetty.

Div
classconfluenceTableSmall
Wiki Markup
{div:class=confluenceTableSmall} || Component || Class || | {{camel-http}} | {{

Component

Class

camel-http

org.apache.camel.component.urlrewrite.http.HttpUrlRewrite

}} | | {{

camel-jetty

}} | {{

org.apache.camel.component.urlrewrite.http.HttpUrlRewrite

}} | | {{

camel-http4

}} | {{

org.apache.camel.component.urlrewrite.http4.HttpUrlRewrite

}} | {div}

You setup the url rewrite as a bean of the type org.apache.camel.component.urlrewrite.http.HttpUrlRewrite (when using Http component) as shown below:

...