ENTAXY-634 release version 1.9.0
This commit is contained in:
@ -0,0 +1,41 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* cxf-echo
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2023 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.esb.platform.runtime.modules.echo;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
|
||||
@Path("/")
|
||||
public interface CxfEchoServer {
|
||||
|
||||
@POST
|
||||
@Path("/echo")
|
||||
@Consumes("application/json")
|
||||
@Produces("application/json")
|
||||
String echo(String message);
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
cxf-echo
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
==========
|
||||
You may not use this file except in accordance with the License Terms of the Copyright
|
||||
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
Software for commercial purposes to provide services to third parties.
|
||||
|
||||
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
Software provided by him will be suitable or not suitable for the specific purposes
|
||||
of the User, that the Software will meet all commercial and personal subjective
|
||||
expectations of the User, that the Software will work properly, without technical
|
||||
errors, quickly and uninterruptedly.
|
||||
|
||||
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
or damage to data, property, etc.
|
||||
~~~~~~/licensing~~~~~~
|
||||
-->
|
||||
|
||||
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
|
||||
xmlns:cxf="http://cxf.apache.org/blueprint/core"
|
||||
xsi:schemaLocation="
|
||||
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
|
||||
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
|
||||
">
|
||||
|
||||
<camelcxf:rsServer id="cxf-echo-rs-server"
|
||||
address="/cxf-echo"
|
||||
serviceClass="ru.entaxy.esb.platform.runtime.modules.echo.CxfEchoServer"/>
|
||||
|
||||
<camelContext id="cxf-echo-context" xmlns="http://camel.apache.org/schema/blueprint">
|
||||
|
||||
<route id="cxf-echo-rs-server-endpoint" streamCache="true">
|
||||
<from uri="cxfrs:bean:cxf-echo-rs-server?bindingStyle=SimpleConsumer"/>
|
||||
<log message="${body}" loggingLevel="TRACE"/>
|
||||
<!-- <to uri="freemarker:ftl/example.ftl"/>-->
|
||||
<!-- <to uri="xslt:xslt/example.xsl"/>-->
|
||||
</route>
|
||||
</camelContext>
|
||||
</blueprint>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
test-suites/cxf-echo/src/main/resources/files/xml1kb.txt
Normal file
1
test-suites/cxf-echo/src/main/resources/files/xml1kb.txt
Normal file
@ -0,0 +1 @@
|
||||
<test><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/><test/></test>
|
41
test-suites/cxf-echo/src/main/resources/ftl/example.ftl
Normal file
41
test-suites/cxf-echo/src/main/resources/ftl/example.ftl
Normal file
@ -0,0 +1,41 @@
|
||||
[#ftl]
|
||||
[#--
|
||||
|
||||
~~~~~~licensing~~~~~~
|
||||
cxf-echo
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
==========
|
||||
You may not use this file except in accordance with the License Terms of
|
||||
the Copyright
|
||||
Holder located at: https://entaxy.ru/eula . All copyrights, all
|
||||
intellectual property
|
||||
rights to the Software and any copies are the property of the Copyright
|
||||
Holder. Unless
|
||||
it is explicitly allowed the Copyright Holder, the User is prohibited
|
||||
from using the
|
||||
Software for commercial purposes to provide services to third parties.
|
||||
|
||||
The Copyright Holder hereby declares that the Software is provided on an
|
||||
"AS IS".
|
||||
Under no circumstances does the Copyright Holder guarantee or promise
|
||||
that the
|
||||
Software provided by him will be suitable or not suitable for the
|
||||
specific purposes
|
||||
of the User, that the Software will meet all commercial and personal
|
||||
subjective
|
||||
expectations of the User, that the Software will work properly, without
|
||||
technical
|
||||
errors, quickly and uninterruptedly.
|
||||
|
||||
Under no circumstances shall the Copyright Holder or its Affiliates is
|
||||
not liable
|
||||
to the User for any direct or indirect losses of the User, his expenses
|
||||
or actual
|
||||
damage, including, downtime; loss of bussines; lost profit; lost
|
||||
earnings; loss
|
||||
or damage to data, property, etc.
|
||||
~~~~~~/licensing~~~~~~
|
||||
|
||||
--]
|
||||
<example>${body}</example>
|
44
test-suites/cxf-echo/src/main/resources/xslt/example.xsl
Normal file
44
test-suites/cxf-echo/src/main/resources/xslt/example.xsl
Normal file
@ -0,0 +1,44 @@
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
cxf-echo
|
||||
==========
|
||||
Copyright (C) 2020 - 2023 EmDev LLC
|
||||
==========
|
||||
You may not use this file except in accordance with the License Terms of the Copyright
|
||||
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
Software for commercial purposes to provide services to third parties.
|
||||
|
||||
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
Software provided by him will be suitable or not suitable for the specific purposes
|
||||
of the User, that the Software will meet all commercial and personal subjective
|
||||
expectations of the User, that the Software will work properly, without technical
|
||||
errors, quickly and uninterruptedly.
|
||||
|
||||
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
or damage to data, property, etc.
|
||||
~~~~~~/licensing~~~~~~
|
||||
-->
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="http://www.1c-esb.ru/ExchangeTypes/1.0"
|
||||
>
|
||||
<xsl:output omit-xml-declaration="yes" indent="yes"/>
|
||||
|
||||
<xsl:template match="@* | node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@* | node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="/">
|
||||
<xsl:copy>
|
||||
<example>
|
||||
<xsl:apply-templates select="@* | node()"/>
|
||||
</example>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user