Add publishedEndpointUrl capability to rsServer Endpoint definition allows to specify publishedEndpointUrl, but this attribute is not available in rsServer element. This attribute (publishedEndpointUrl) is used by WadlGenerator to compose baseUri resource in the WADL. If you are deploying a REST service in an internal net but exposed to internet (through reverse proxy, for example) , WADL should inform such publishing address (in a similar way that you can do it with WSDL in camel-cxf).
Actually, since no publishedEndpointUrl can be used in rsServer definition, baseUri is built with HTTP request information. That means internal network information could be leaked in a reverse proxy scenario. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/46699f94 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/46699f94 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/46699f94 Branch: refs/heads/master Commit: 46699f94c0f0bb4c2300b8650e78bc6ffc03377a Parents: 8874ee1 Author: David Santos <daw...@gmail.com> Authored: Fri Oct 7 09:19:13 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Oct 9 09:22:31 2016 +0200 ---------------------------------------------------------------------- .../camel-cxf/src/main/resources/schema/blueprint/camel-cxf.xsd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/46699f94/components/camel-cxf/src/main/resources/schema/blueprint/camel-cxf.xsd ---------------------------------------------------------------------- diff --git a/components/camel-cxf/src/main/resources/schema/blueprint/camel-cxf.xsd b/components/camel-cxf/src/main/resources/schema/blueprint/camel-cxf.xsd index f5efdf3..b2f7165 100644 --- a/components/camel-cxf/src/main/resources/schema/blueprint/camel-cxf.xsd +++ b/components/camel-cxf/src/main/resources/schema/blueprint/camel-cxf.xsd @@ -98,6 +98,7 @@ <xsd:attribute name="staticSubresourceResolution" type="xsd:boolean"/> <xsd:attribute name="loggingFeatureEnabled" type="xsd:boolean"/> <xsd:attribute name="loggingSizeLimit" type="xsd:integer" /> + <xsd:attribute name="publishedEndpointUrl" type="xsd:string" /> </xsd:extension> </xsd:complexContent> </xsd:complexType> @@ -175,4 +176,4 @@ </xsd:sequence> <xsd:attribute name="id" type="xsd:string"/> </xsd:complexType> -</xsd:schema> \ No newline at end of file +</xsd:schema>