Author: dimuthul
Date: Tue Jan  8 20:55:08 2008
New Revision: 11993

Log:

Applying Xfer patch.  And fixing the jar issues.



Added:
   
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/mex/XferGetServiceAdapter.java
Modified:
   trunk/solutions/identity/modules/distribution/src/assemble/assembly-bin.xml
   trunk/solutions/identity/modules/identity-mex/pom.xml

Modified: 
trunk/solutions/identity/modules/distribution/src/assemble/assembly-bin.xml
==============================================================================
--- trunk/solutions/identity/modules/distribution/src/assemble/assembly-bin.xml 
(original)
+++ trunk/solutions/identity/modules/distribution/src/assemble/assembly-bin.xml 
Tue Jan  8 20:55:08 2008
@@ -60,9 +60,11 @@
                 
<include>org.wso2.solutions.identity:wso2is-idp-sample:jar</include>
                 <!-- Other 3rd party jars-->
                 <include>org.apache.axis2:mex-impl:jar</include>
-                   
<include>org.wso2.commons.usermanager:user-verification:jar</include>
+               
<include>org.wso2.commons.usermanager:user-verification:jar</include>
                 
<include>org.wso2.commons.usermanager:usermanager-core:jar</include>
-                
<include>org.wso2.commons.usermanager:usermanager-config-annotation:jar</include>
+                
<include>org.wso2.commons.usermanager:usermanager-config-annotation:jar</include>
+               <include>commons-dbcp:commons-dbcp:jar</include>
+               <include>commons-pool:commons-pool:jar</include>
                 <!-- todo to new version-->
                 <include>logkit:logkit:jar</include>
                 <include>org.apache.santuario:xmlsec:jar</include>

Modified: trunk/solutions/identity/modules/identity-mex/pom.xml
==============================================================================
--- trunk/solutions/identity/modules/identity-mex/pom.xml       (original)
+++ trunk/solutions/identity/modules/identity-mex/pom.xml       Tue Jan  8 
20:55:08 2008
@@ -42,4 +42,12 @@
             </plugin>
         </plugins>
     </build>
+    <dependencies>
+     <dependency>
+            <groupId>org.wso2.xfer</groupId>
+            <artifactId>wso2xfer</artifactId>
+            <version>2.1</version>
+            <type>jar</type>
+        </dependency>
+</dependencies>
 </project>

Added: 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/mex/XferGetServiceAdapter.java
==============================================================================
--- (empty file)
+++ 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/mex/XferGetServiceAdapter.java
     Tue Jan  8 20:55:08 2008
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.wso2.solutions.identity.sts.mex;
+
+import org.apache.axiom.om.OMElement;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wso2.xfer.WSTransferException;
+import org.wso2.xfer.WSTransferFactory;
+import org.wso2.xfer.WSTransferOperations;
+
+public class XferGetServiceAdapter implements WSTransferOperations {
+
+    private static final Log logger = 
LogFactory.getLog(XferGetServiceAdapter.class);
+    
+    MexGetService service;
+    
+    public XferGetServiceAdapter() {
+        service = new MexGetService();
+    }
+
+    public OMElement get(OMElement arg0) throws WSTransferException {
+        try {
+            return service.get(arg0);
+        } catch (AxisFault e) {
+            logger.error("", e);
+            throw new RuntimeException(e);
+        }
+    }
+    
+       public void delete(OMElement headers) throws WSTransferException {
+               throw new UnsupportedOperationException("delete() not 
supported");
+       }
+
+       public OMElement put(OMElement headers, OMElement resource)
+                       throws WSTransferException {
+               throw new UnsupportedOperationException("put() not supported");
+       }
+}

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to