You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2014/01/28 08:51:52 UTC
git commit: fixing single element array as json
Updated Branches:
refs/heads/master 2ce0faf71 -> 938585b1c
fixing single element array as json
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/938585b1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/938585b1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/938585b1
Branch: refs/heads/master
Commit: 938585b1c76e8df08020d8b56cfb7cd189090d2e
Parents: 2ce0faf
Author: rekathiru <rt...@gmail.com>
Authored: Tue Jan 28 13:22:10 2014 +0530
Committer: rekathiru <rt...@gmail.com>
Committed: Tue Jan 28 13:22:10 2014 +0530
----------------------------------------------------------------------
.../src/main/webapp/stratos/WEB-INF/cxf-servlet.xml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/938585b1/components/org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml b/components/org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
index 7677748..11947f4 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
+++ b/components/org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
@@ -31,6 +31,7 @@
</jaxrs:serviceBeans>
<jaxrs:providers>
+ <ref bean="jsonProvider"/>
<ref bean="exceptionHandler"/>
<ref bean="authenticationFilter"/>
<ref bean="authorizationFilter"/>
@@ -50,5 +51,19 @@
<property name="username" value="admin"/>
<property name="oauthValidationEndpoint" value="https://localhost:9443/services/"/>
</bean>
+ <bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
+ <property name="serializeAsArray" value="true"/>
+ <property name="arrayKeys">
+ <list>
+ <value>partitions</value>
+ <value>property</value>
+ <value>hostNames</value>
+ <value>memberMap</value>
+ <value>portMap</value>
+ <value>partitionGroup</value>
+ <value>partition</value>
+ </list>
+ </property>
+ </bean>
</beans>