Package org.mule.api.lifecycle

Examples of org.mule.api.lifecycle.CreateException


        {
            fileFilter = (FileFilter) filter;
        }
        else if (filter != null)
        {
            throw new CreateException(FileMessages.invalidFileFilter(endpoint.getEndpointURI()), this);
        }
    }
View Full Code Here


    @Override
    protected Client createClient() throws CreateException, Exception
    {
        if (clientClass != null && serviceClass != null)
        {
            throw new CreateException(CxfMessages.onlyServiceOrClientClassIsValid(), this);
        }
       
        if (clientClass != null)
        {
            return createClientFromJaxWsProxy();
View Full Code Here

            {
                URIResolver res = new URIResolver(wsdlLocation);

                if (!res.isResolved())
                {
                    throw new CreateException(CxfMessages.wsdlNotFound(wsdlLocation), this);
                }
                url = res.getURL();
            }

            WebServiceClient clientAnn = clientCls.getAnnotation(WebServiceClient.class);
            QName svcName = new QName(clientAnn.targetNamespace(), clientAnn.name());

            s = (Service) cons.newInstance(url, svcName);
        }
        else
        {
            s = (Service) clientCls.newInstance();
        }

        if (port == null)
        {
            throw new CreateException(CxfMessages.mustSpecifyPort(), this);
        }

        clientProxy = null;
        for (Method m : clientCls.getMethods())
        {
            WebEndpoint we = m.getAnnotation(WebEndpoint.class);

            if (we != null && we.name().equals(port) && m.getParameterTypes().length == 0)
            {
                clientProxy = (BindingProvider) m.invoke(s, new Object[0]);
                break;
            }
        }

        if (clientProxy == null)
        {
            throw new CreateException(CxfMessages.portNotFound(port), this);
        }

        return ClientProxy.getClient(clientProxy);
    }
View Full Code Here

TOP

Related Classes of org.mule.api.lifecycle.CreateException

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.