1 29 30 package com.caucho.soa.client; 31 32 import com.caucho.soap.service.ServiceImplInvocationHandler; 33 import com.caucho.util.L10N; 34 35 import javax.xml.bind.JAXBException; 36 import java.lang.reflect.Proxy ; 37 import java.net.MalformedURLException ; 38 39 public class SoapEncodingProxyFactory implements EncodingProxyFactory { 40 private static final L10N L = new L10N(SoapEncodingProxyFactory.class); 41 42 public Object getProxy(Class serviceInterface, String url) 43 throws MalformedURLException , JAXBException 44 { 45 if (serviceInterface == null) 46 throw new NullPointerException (L.l("SOAP API is missing from proxy call.")); 47 48 ServiceImplInvocationHandler handler = 49 new ServiceImplInvocationHandler(serviceInterface, url); 50 51 return Proxy.newProxyInstance(serviceInterface.getClassLoader(), 52 new Class [] { serviceInterface }, 53 handler); 54 } 55 56 public Object getProxy(Class serviceInterface, String url, 57 String jaxbPackages) 58 { 59 throw new UnsupportedOperationException (); 60 } 61 62 public Object getProxy(Class serviceInterface, String url, 63 Class [] jaxbClasses) 64 { 65 throw new UnsupportedOperationException (); 66 } 67 } 68 | Popular Tags |