KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > soap > xfire > wsdl > XFireWsdlClientPoolFactory


1 /*
2  * $Id: XFireWsdlClientPoolFactory.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.providers.soap.xfire.wsdl;
12
13 import java.net.URL JavaDoc;
14
15 import org.codehaus.xfire.XFire;
16 import org.codehaus.xfire.client.Client;
17 import org.codehaus.xfire.service.Service;
18 import org.mule.providers.soap.xfire.XFireClientPoolFactory;
19 import org.mule.umo.endpoint.UMOImmutableEndpoint;
20
21 public class XFireWsdlClientPoolFactory extends XFireClientPoolFactory
22 {
23
24     public XFireWsdlClientPoolFactory(UMOImmutableEndpoint endpoint, Service service, XFire xfire)
25     {
26         super(endpoint, service, xfire);
27     }
28
29     public Object JavaDoc makeObject() throws Exception JavaDoc
30     {
31         // We are assuming here that we are not going to use any
32
// other transport other than http.
33
Client client = new Client(new URL JavaDoc(uri.getAddress()));
34         client.setXFire(xfire);
35         client.setEndpointUri(uri.toString());
36         return client;
37     }
38
39 }
40
Popular Tags