All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.tesb.sam-service-rest.xml Maven / Gradle / Ivy

There is a newer version: 8.0.1.R2024-05-RT
Show newest version
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:jaxrs="http://cxf.apache.org/jaxrs"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
    ">

    <import resource="classpath:/META-INF/tesb/sam-server.xml" />

    <bean id="restService" class="org.talend.esb.sam.service.rest.SAMRestServiceImpl">
        <property name="provider" ref="providerBean" />
    </bean>

    <jaxrs:server id="SAMRestService" address="/sam">
        <jaxrs:serviceBeans>
            <ref bean="restService" />
        </jaxrs:serviceBeans>
        <jaxrs:providers>
            <bean class="org.talend.esb.sam.service.rest.SAMExceptionMapper" />
            <bean class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
                <property name="ignoreNamespaces" value="true" />
                <property name="dropRootElement" value="true" />
            </bean>
        </jaxrs:providers>
    </jaxrs:server>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy