Package javax.xml.registry

Examples of javax.xml.registry.JAXRException


                col.add(asso);
            }
            return new BulkResponseImpl(col);
        } catch (RegistryException e)
        {
            throw new JAXRException(e);
        }
    }
View Full Code Here



            return new BulkResponseImpl(col);
        } catch (RegistryException e)
        {
            throw new JAXRException(e);
        }
    }
View Full Code Here

                    }

                } catch (RegistryException e)
                {
                    log.error("Exception ::",e);
                    throw new JAXRException(e.getLocalizedMessage());
                }
            }
        }
        return scheme;
    }
View Full Code Here

                }

            } catch (RegistryException e)
            {
                log.error("RegistryException::",e);
                throw new JAXRException(e.getLocalizedMessage());
            }
        }

        return new BulkResponseImpl(col);
    }
View Full Code Here

                blkRes.setCollection(col);
            }
        }
        catch (RegistryException e) {
            log.error("RegistryException::",e);
            throw new JAXRException(e.getLocalizedMessage());
        }

        return blkRes;
    }
View Full Code Here

                blkRes.setCollection(col);
            }
        }
        catch (RegistryException e) {
            log.error("RegistryException::",e);
            throw new JAXRException(e.getLocalizedMessage());
        }

        return blkRes;
    }
View Full Code Here

                    return scheme;
                }
            }
            catch (RegistryException e) {
              log.error("RegistryException::",e);
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.ORGANIZATION.equalsIgnoreCase(objectType)) {

            try
            {
                BusinessDetail orgdetail = registry.getBusinessDetail(id);
                return ScoutUddiJaxrHelper.getOrganization(orgdetail, lcm);
            }
            catch (RegistryException e) {
              log.error("RegistryException::",e);
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType)) {

            try
            {
                TModelDetail tmodeldetail = registry.getTModelDetail(id);
                return ScoutUddiJaxrHelper.getConcept(tmodeldetail, lcm);
            }
            catch (RegistryException e) {
              log.error("RegistryException::",e);
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {

            try {
View Full Code Here

                }

            } catch (RegistryException e)
            {
              log.error("RegistryException::",e);
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.ORGANIZATION.equalsIgnoreCase(objectType))
        {
            //Get the Organization from the uddi registry
            try
            {
                BusinessDetail orgdetail = registry.getBusinessDetail(keys);
                Vector bizvect = orgdetail.getBusinessEntityVector();
                for (int i = 0; bizvect != null && i < bizvect.size(); i++)
                {
                    col.add(ScoutUddiJaxrHelper.getOrganization((BusinessEntity) bizvect.elementAt(i), lcm));
                }
            } catch (RegistryException e)
            {
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
        {
            try {
                TModelDetail tmodeldetail = registry.getTModelDetail(keys);
                Vector tmvect = tmodeldetail.getTModelVector();
                for (int i = 0; tmvect != null && i < tmvect.size(); i++)
                {
                    col.add(ScoutUddiJaxrHelper.getConcept((TModel) tmvect.elementAt(i), lcm));
                }

            }
            catch (RegistryException e)
            {
              log.error("RegistryException::",e);
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {

            try {
                ServiceDetail serviceDetail = registry.getServiceDetail(keys);

                if (serviceDetail != null) {

                    Vector v = serviceDetail.getBusinessServiceVector();

                    for (int i=0; v != null && i < v.size(); i++) {

                        Service service = getServiceFromBusinessService(
                                (BusinessService) v.elementAt(i), lcm);

                        col.add(service);
                    }
                }
            }
            catch (RegistryException e) {
                throw new JAXRException(e);
            }
        }
        else {
            throw new JAXRException("Unsupported type " + objectType +
                    " for getRegistryObjects() in Apache Scout");
        }

        return new BulkResponseImpl(col);
View Full Code Here

            return br;
        }
        else
        {
            throw new JAXRException("Unsupported type for getRegistryObjects() :" + id);
        }

    }
View Full Code Here

        AuthToken token = null;
        try {
            token = ireg.getAuthToken(username, pwd);
        }
        catch (Exception e) {
            throw new JAXRException(e);
        }
        return token;
    }
View Full Code Here

TOP

Related Classes of javax.xml.registry.JAXRException

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.