.ws.client-core.1.0.0.source-code.http-header-beans.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-core Show documentation
Show all versions of client-core Show documentation
Core classes to be shared amongst all webservice implementations
<?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