Generate metadata service without the authentication executor
authorCherian Mathew <c.mathew@bgbm.org>
Mon, 23 Nov 2015 10:41:04 +0000 (11:41 +0100)
committerCherian Mathew <c.mathew@bgbm.org>
Mon, 23 Nov 2015 10:41:04 +0000 (11:41 +0100)
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationRemoteConfiguration.java

index 26f6889..52bb763 100644 (file)
@@ -19,6 +19,7 @@ import org.apache.log4j.Logger;
 import org.springframework.beans.BeansException;\r
 import org.springframework.context.ApplicationContext;\r
 import org.springframework.context.ApplicationContextAware;\r
+import org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor;\r
 import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;\r
 import org.springframework.security.access.AccessDecisionVoter;\r
 import org.springframework.security.authentication.AuthenticationProvider;\r
@@ -127,7 +128,7 @@ public class CdmApplicationRemoteConfiguration implements ICdmApplicationConfigu
         this.remoteSource = remoteSource;\r
     }\r
 \r
-    private Object getService(Class<?> clazz, String serviceSuffix, CdmAuthenticatedHttpInvokerRequestExecutor executor) {\r
+    private Object getService(Class<?> clazz, String serviceSuffix, CommonsHttpInvokerRequestExecutor executor) {\r
         if(serviceMap.containsKey(clazz)) {\r
             return serviceMap.get(clazz);\r
         }\r
@@ -139,7 +140,7 @@ public class CdmApplicationRemoteConfiguration implements ICdmApplicationConfigu
     public static Object getService(Class<?> clazz,\r
             String serviceSuffix,\r
             ICdmRemoteSource remoteSource,\r
-            CdmAuthenticatedHttpInvokerRequestExecutor executor) {\r
+            CommonsHttpInvokerRequestExecutor executor) {\r
 \r
         String baseUrl;\r
         if(remoteSource.getContextPath() == null || remoteSource.getContextPath().equals("")) {\r
@@ -304,11 +305,11 @@ public class CdmApplicationRemoteConfiguration implements ICdmApplicationConfigu
 \r
     @Override\r
     public IMetadataService getMetadataService() {\r
-        return (IMetadataService) getService(IMetadataService.class, "/remoting-public/metadata.service", new CdmServiceRequestExecutor());\r
+        return (IMetadataService) getService(IMetadataService.class, "/remoting-public/metadata.service", new CommonsHttpInvokerRequestExecutor());\r
     }\r
 \r
     public static IMetadataService getMetadataService(ICdmRemoteSource remoteSource) {\r
-        return (IMetadataService) getService(IMetadataService.class, "/remoting-public/metadata.service", remoteSource, new CdmServiceRequestExecutor());\r
+        return (IMetadataService) getService(IMetadataService.class, "/remoting-public/metadata.service", remoteSource, new CommonsHttpInvokerRequestExecutor());\r
     }\r
 \r
     @Override\r