public XFireProxyFactory() { this.xfire = XFireFactory.newInstance().getXFire(); }
public XFireHttpServer(File keystore, String keystorePassword, String keyPassword) { this(XFireFactory.newInstance().getXFire(), keystore, keystorePassword, keyPassword); }
protected XFire getXFire() { return XFireFactory.newInstance().getXFire(); }
public JAXWSServiceFactory() { this(XFireFactory.newInstance().getXFire().getTransportManager()); }
/** * Initializes a new instance of the <code>ObjectServiceFactory</code>. * Uses the XFireFactory to obtain an instance of the TransportManager. */ public ObjectServiceFactory() { this(XFireFactory.newInstance().getXFire().getTransportManager()); }
/** * Creates an AnnotationServiceFactory which uses the most appropriate * annotations implementation - commons-attributes on Java 1.4 and * Java 5 attributes on Java 5 JVMs. * <p> * The {@link TransportManager} is retrieved from the {@link XFireFactory}. */ public AnnotationServiceFactory() { this(XFireFactory.newInstance().getXFire().getTransportManager()); }
public XFire createXFire() throws ServletException { try { XFire xfire = (XFire) getServletContext().getAttribute(XFIRE_INSTANCE); if (xfire == null) { XFireFactory factory = XFireFactory.newInstance(); xfire = factory.getXFire(); } return xfire; } catch (Exception e) { throw new ServletException("Couldn't start XFire.", e); } }
public ObjectServiceFactory(BindingProvider bp) { this(XFireFactory.newInstance().getXFire().getTransportManager(), bp); }
public JaxbServiceFactory() { this(XFireFactory.newInstance().getXFire().getTransportManager(), null); }
public JaxbServiceFactory(JAXBContext jaxbContext) { this(XFireFactory.newInstance().getXFire().getTransportManager(), jaxbContext); }
/** * @param response */ protected void generateServices(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); HtmlServiceWriter writer = new HtmlServiceWriter(request); try { Object value = XFireFactory.newInstance().getXFire().getProperty(XFire.SERVICES_LIST_DISABLED); if( value != null && "true".equals(value.toString().toLowerCase())){ response.getOutputStream().write("Services list disabled".getBytes()); }else{ writer.write(response.getOutputStream(), getServiceRegistry().getServices()); } } catch (XMLStreamException e) { throw new ServletException("Error writing HTML services list", e); } }
/** * An annotation service factory that is initialized with the {@link org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations} and * the default transport manager. */ public EnunciatedJAXWSServiceFactory() { super(new Jsr181WebAnnotations(), XFireFactory.newInstance().getXFire().getTransportManager()); }
/** * An annotation service factory that is initialized with the {@link org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations} and * the default transport manager. */ public EnunciatedJAXWSServiceFactory() { super(new Jsr181WebAnnotations(), XFireFactory.newInstance().getXFire().getTransportManager()); }
XFireFactory.newInstance().setXFire(xfire);
/** * Create a client which uses a particular {@link Binding} with a specified URL. The * {@link Transport} is looked up via the {@link TransportManager} from its URL. * @param binding * @param url */ public Client( Binding binding, String url) { this(binding, XFireFactory.newInstance().getXFire().getTransportManager().getTransport(binding.getBindingId()), binding.getService(), url, null); }
public void addService(Class<? extends TopiaApplicationService> clazz) { // Create an XFire Service ObjectServiceFactory serviceFactory = new ObjectServiceFactory(); Service service = serviceFactory.create(clazz); //service.setInvoker(new BeanInvoker(new EchoImpl())); service.setInvoker(this); // Register the service in the ServiceRegistry XFire xfire = XFireFactory.newInstance().getXFire(); xfire.getServiceRegistry().register(service); }
xfire = XFireFactory.newInstance().getXFire();
/** * Load an XFire client proxy that implements the specified interface. * * @param iface The interface. * @param uuid The UUID of the interface. * @param endpoint The endpoint URL of the SOAP port. * @return The proxy. */ protected final Object loadProxy(Class iface, String uuid, String endpoint) { XFire xFire = XFireFactory.newInstance().getXFire(); TransportManager transportManager = xFire.getTransportManager(); Service service; try { ExplicitJAXWSAnnotationServiceFactory factory = new ExplicitJAXWSAnnotationServiceFactory(uuid, transportManager); service = factory.create(iface); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException(e); } SoapHttpTransport soapTransport = new SoapHttpTransport(); if (!soapTransport.isUriSupported(endpoint)) { throw new IllegalArgumentException("Endpoint " + endpoint + " is not a supported SOAP endpoint."); } soapTransport.addOutHandler(new EnunciatedClientSoapSerializerHandler()); Client client = new Client(soapTransport, service, endpoint); return new XFireProxyFactory(xFire).create(client); }
/** * Load an XFire client proxy that implements the specified interface. * * @param iface The interface. * @param uuid The UUID of the interface. * @param endpoint The endpoint URL of the SOAP port. * @return The proxy. */ protected final Object loadProxy(Class iface, String uuid, String endpoint) { XFire xFire = XFireFactory.newInstance().getXFire(); TransportManager transportManager = xFire.getTransportManager(); Service service; try { ExplicitJAXWSAnnotationServiceFactory factory = new ExplicitJAXWSAnnotationServiceFactory(uuid, transportManager); service = factory.create(iface); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException(e); } SoapHttpTransport soapTransport = new SoapHttpTransport(); if (!soapTransport.isUriSupported(endpoint)) { throw new IllegalArgumentException("Endpoint " + endpoint + " is not a supported SOAP endpoint."); } soapTransport.addOutHandler(new EnunciatedClientSoapSerializerHandler()); Client client = new Client(soapTransport, service, endpoint); return new XFireProxyFactory(xFire).create(client); }