1 29 30 package com.caucho.soa.client; 31 32 import com.caucho.hessian.client.HessianProxyFactory; 33 import com.caucho.util.L10N; 34 35 import java.net.MalformedURLException ; 36 37 public class HessianEncodingProxyFactory implements EncodingProxyFactory { 38 private static HessianProxyFactory _proxyFactory; 39 private static final L10N L = new L10N(HessianEncodingProxyFactory.class); 40 41 public Object getProxy(Class serviceInterface, String url) 42 throws MalformedURLException 43 { 44 HessianProxyFactory proxyFactory = getProxyFactory(); 46 47 return proxyFactory.create(serviceInterface, url); 48 } 49 50 private static HessianProxyFactory getProxyFactory() 51 { 52 if (_proxyFactory == null) 53 _proxyFactory = new HessianProxyFactory(); 54 55 return _proxyFactory; 56 } 57 58 public Object getProxy(Class serviceInterface, String url, 59 String jaxbPackages) 60 { 61 throw new UnsupportedOperationException (L.l("Hessian does not use JAXB")); 62 } 63 64 public Object getProxy(Class serviceInterface, String url, 65 Class [] jaxbClasses) 66 { 67 throw new UnsupportedOperationException (L.l("Hessian does not use JAXB")); 68 } 69 } 70 | Popular Tags |