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

.ws.client-core.1.0.0.source-code.http-header-beans.xml Maven / Gradle / Ivy

There is a newer version: 1.0.2
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:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">


    <bean id="jsonContentType" class="org.bongiorno.ws.core.client.headers.ContentTypeHeader">
        <constructor-arg value="application/json"/>
    </bean>

    <bean id="jsonAccept" class="org.bongiorno.ws.core.client.headers.AcceptHeader">
        <constructor-arg>
            <util:list>
                <value>application/json</value>
            </util:list>
        </constructor-arg>
    </bean>

    <bean id="txtContentType" class="org.bongiorno.ws.core.client.headers.ContentTypeHeader">
        <constructor-arg value="text/plain"/>
    </bean>

    <bean id="formEncodedContentType" class="org.bongiorno.ws.core.client.headers.ContentTypeHeader">
        <constructor-arg value="application/x-www-form-urlencoded"/>
    </bean>

    <bean id="txtAccept" class="org.bongiorno.ws.core.client.headers.AcceptHeader">
        <constructor-arg>
            <util:list>
                <value>text/plain</value>
            </util:list>
        </constructor-arg>
    </bean>

    <bean id="txtHeaderPair" class="org.bongiorno.ws.core.client.headers.CompositeHeader">
        <constructor-arg>
            <util:set set-class="java.util.LinkedHashSet">
                <ref bean="txtContentType"/>
                <ref bean="txtAccept"/>
            </util:set>
        </constructor-arg>
    </bean>

    <bean id="jsonHeaderPair" class="org.bongiorno.ws.core.client.headers.CompositeHeader">
        <constructor-arg>
            <util:set set-class="java.util.LinkedHashSet">
                <ref bean="jsonContentType"/>
                <ref bean="jsonAccept"/>
            </util:set>
        </constructor-arg>
    </bean>

    <bean id="xmlContentType" class="org.bongiorno.ws.core.client.headers.ContentTypeHeader">
        <constructor-arg value="application/xml"/>
    </bean>

    <bean id="xmlAccept" class="org.bongiorno.ws.core.client.headers.AcceptHeader">
        <constructor-arg>
            <util:list>
                <value>application/xml</value>
            </util:list>
        </constructor-arg>
    </bean>

    <bean id="xmlHeaderPair" class="org.bongiorno.ws.core.client.headers.CompositeHeader">
        <constructor-arg>
            <util:set set-class="java.util.LinkedHashSet">
                <ref bean="xmlContentType"/>
                <ref bean="xmlAccept"/>
            </util:set>
        </constructor-arg>
    </bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy