Package org.apache.tuscany.sca.binding.resource

Examples of org.apache.tuscany.sca.binding.resource.HTTPResourceBinding


        JavaInterfaceContract interfaceContract = javaFactory.createJavaInterfaceContract();
        interfaceContract.setInterface(javaInterface);
        resourceService.setInterfaceContract(interfaceContract);
       
        // Configure the resource service with a default HTTP resource binding
        HTTPResourceBinding resourceBinding = bindingFactory.createHTTPResourceBinding();
        resourceService.getBindings().add(resourceBinding);
    }
View Full Code Here


        return HTTPResourceBinding.class;
    }

    public HTTPResourceBinding read(XMLStreamReader reader) throws ContributionReadException {
        String uri = reader.getAttributeValue(null, "uri");
        HTTPResourceBinding echoBinding = factory.createHTTPResourceBinding();
        if (uri != null) {
            echoBinding.setURI(uri.trim());
        }
        return echoBinding;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.resource.HTTPResourceBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.