Package javax.xml.registry

Examples of javax.xml.registry.InvalidRequestException


            JAXBContext context = JAXBContextUtil.getContext(JAXBContextUtil.UDDI_V3_VERSION);
            unmarshaller = context.createUnmarshaller();
            marshaller = context.createMarshaller();
           
        } catch (URISyntaxException muex) {
            throw new InvalidRequestException(muex.getMessage(), muex);
        } catch(JAXBException e) {
           throw new RuntimeException(e);
        }
  }
View Full Code Here


    }

    public void setAccessURI(String s) throws JAXRException
    {
        if(targetbinding != null)
        throw new InvalidRequestException("There is already a Target Binding defined");
        accessuri = s;
    }
View Full Code Here

    }

    public void setTargetBinding(ServiceBinding sb) throws JAXRException
    {
        if(accessuri != null)
                throw new InvalidRequestException("There is already an Access URI defined");

        targetbinding = sb;
    }
View Full Code Here

        }
        else if (LifeCycleManager.VERSIONABLE.equals(interfaceName)) {
            throw new UnsupportedCapabilityException();
        }
        else {
            throw new InvalidRequestException("Unknown interface: " + interfaceName);
        }
    }
View Full Code Here

        return assoc;
    }

    public Classification createClassification(Concept concept) throws JAXRException, InvalidRequestException {
        if (concept.getClassificationScheme() == null) {
            throw new InvalidRequestException("Concept is not under classification scheme");
        }
        Classification classify = (Classification) this.createObject(LifeCycleManager.CLASSIFICATION);
        classify.setConcept(concept);
        return classify;
    }
View Full Code Here

    }

    public ClassificationScheme createClassificationScheme(Concept concept) throws JAXRException, InvalidRequestException {
        //Check if the passed concept has a classificationscheme or has a parent concept
        if (concept.getParentConcept() != null || concept.getClassificationScheme() != null) {
            throw new InvalidRequestException("Concept has classificationscheme or has a parent");
        }


        ClassificationScheme cs = new ClassificationSchemeImpl(this);
        cs.addChildConcept(concept);
View Full Code Here

                    if (list != null) infos = list.getTModelInfos();
                    if (infos != null) tmvect = infos.getTModelInfoVector();
                    if (tmvect != null)
                    {
                        if (tmvect.size() > 1)
                            throw new InvalidRequestException("Multiple matches found");

                        TModelInfo info = (TModelInfo) tmvect.elementAt(0);
                        scheme.setName(new InternationalStringImpl(info.getName().getValue()));
                        scheme.setKey(new KeyImpl(info.getTModelKey()));
                    }
View Full Code Here

    public Connection createConnection() throws JAXRException
    {
        if (queryManagerURL == null)
        {
            throw new InvalidRequestException("queryManager is not set");
        }
        URL queryManager;
        URL lifeCycleManager;
        try
        {
            queryManager = new URL(queryManagerURL);
        } catch (MalformedURLException e)
        {
            throw new InvalidRequestException("Invalid queryManagerURL: " + queryManagerURL, e);
        }
        try
        {
            lifeCycleManager = lifeCycleManagerURL == null ? queryManager : new URL(lifeCycleManagerURL);
        } catch (MalformedURLException e)
        {
            throw new InvalidRequestException("Invalid lifeCycleManagerURL: " + lifeCycleManagerURL, e);
        }
        return new ConnectionImpl(queryManager, lifeCycleManager, null, maxRows == null ? -1 : maxRows.intValue());
    }
View Full Code Here

    }

    public void setAccessURI(String s) throws JAXRException
    {
        if(targetbinding != null)
        throw new InvalidRequestException("There is already a Target Binding defined");
        accessuri = s;
    }
View Full Code Here

    }

    public void setTargetBinding(ServiceBinding sb) throws JAXRException
    {
        if(accessuri != null)
                throw new InvalidRequestException("There is already an Access URI defined");

        targetbinding = sb;
    }
View Full Code Here

TOP

Related Classes of javax.xml.registry.InvalidRequestException

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.