...
The camel-urlrewrite
component offers the following options
Div |
---|
class | confluenceTableSmall |
---|
|
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
|
}} |
| {{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 |
---|
class | confluenceTableSmall |
---|
|
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| Component || Class ||
| {{camel-http}} | {{ Component | Class |
---|
camel-http |
org.apache.camel.component.urlrewrite.http.HttpUrlRewrite
|
}} |
| {{}} | {{ | org.apache.camel.component.urlrewrite.http.HttpUrlRewrite
|
}} |
| {{}} | {{ | 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:
...