Package org.apache.muse.core.routing

Examples of org.apache.muse.core.routing.ResourceIdFactory


public class SimpleTestClient
{
    public static void addReferenceParameter(EndpointReference epr)
    {
        ResourceIdFactory factory = new CounterResourceIdFactory();
        QName name = factory.getIdentifierName();
        String value = factory.getNextIdentifier();
        epr.addParameter(name, value);
    }
View Full Code Here


public class HttpServerTestApp
{
    public static void addReferenceParameter(EndpointReference epr)
    {
        ResourceIdFactory factory = new CounterResourceIdFactory();
        QName name = factory.getIdentifierName();
        URI value = factory.getNextIdentifier();
        epr.addParameter(name, value);
    }
View Full Code Here

        throws SoapFault
    {
        boolean isUsingPersistence = createUsingPersistence(xml);
        String contextPath = createContextPath(xml);
        WsdlConfig wsdl = createWSDL(xml);
        ResourceIdFactory idFactory = createResourceIdFactory(xml, environment);
        Class resourceClass = createResourceClass(xml, environment);
        Collection capabilities = createCapabilityDefinitions(xml, environment, wsdl);

        InitParamDescriptor paramDesc = createInitParamDescriptor();
        paramDesc.load(xml);
View Full Code Here

        // create the unique EPR for the resource using the
        // ID factory specified
        //
        EndpointReference uniqueEPR = env.getDeploymentEPR();
       
        ResourceIdFactory idFactory = getResourceIdFactory();
       
        if (idFactory != null)
        {
            QName id = idFactory.getIdentifierName();
            String value = idFactory.getNextIdentifier();
            uniqueEPR.addParameter(id, value);
        }
       
        resource.setEndpointReference(uniqueEPR);
       
View Full Code Here

public class SimpleTestClient
{
    public static void addReferenceParameter(EndpointReference epr)
    {
        ResourceIdFactory factory = new CounterResourceIdFactory();
        QName name = factory.getIdentifierName();
        String value = factory.getNextIdentifier();
        epr.addParameter(name, value);
    }
View Full Code Here

        // create the unique EPR for the resource using the
        // ID factory specified
        //
        EndpointReference uniqueEPR = env.getDeploymentEPR();
       
        ResourceIdFactory idFactory = getResourceIdFactory();
       
        if (idFactory != null)
        {
            QName id = idFactory.getIdentifierName();
            String value = idFactory.getNextIdentifier();
            uniqueEPR.addParameter(id, value);
        }
       
        resource.setEndpointReference(uniqueEPR);
       
View Full Code Here

        throws SoapFault
    {
        boolean isUsingPersistence = createUsingPersistence(xml);
        String contextPath = createContextPath(xml);
        WsdlConfig wsdl = createWSDL(xml);
        ResourceIdFactory idFactory = createResourceIdFactory(xml, environment);
        Class resourceClass = createResourceClass(xml, environment);
        Collection capabilities = createCapabilityDefinitions(xml, environment, wsdl);

        InitParamDescriptor paramDesc = createInitParamDescriptor();
        paramDesc.load(xml);
View Full Code Here

        Element wsdlXML = XmlUtils.createElement(doc, DescriptorConstants.WSDL_QNAME);
        XmlUtils.setElement(wsdlXML, DescriptorConstants.WSDL_FILE_QNAME, wsdl.getWsdlPath());
        XmlUtils.setElement(wsdlXML, DescriptorConstants.WSDL_PORT_TYPE_QNAME, wsdl.getWsdlPortType());
        root.appendChild(wsdlXML);
       
        ResourceIdFactory factory = def.getResourceIdFactory();
       
        if (factory != null)
            XmlUtils.setElement(root, DescriptorConstants.JAVA_ID_FACTORY_QNAME, factory.getClass().getName());
       
        XmlUtils.setElement(root, DescriptorConstants.JAVA_RESOURCE_QNAME, def.getResourceClass().getName());
       
        Iterator i = def.getCapabilityDefinitions().iterator();
       
View Full Code Here

  }


    public static void addReferenceParameter(EndpointReference epr)
    {
        ResourceIdFactory factory = new CounterResourceIdFactory();
        QName name = factory.getIdentifierName();
        String value = factory.getNextIdentifier();
        epr.addParameter(name, value);
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.core.routing.ResourceIdFactory

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.