Package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl

Examples of org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterPortResource


            {
                // unable to read digest... no problem, ignore then
            }

            // ok, this really is a new XSD file then, of unknown URL origin
            DownloadedSchemaEntry newEntry = addNewEntry();
            newEntry.setFilename(filename);
            warning("Caching information on new local file " + filename);
            if (digest != null)
                newEntry.setSha1(digest);

            seenResources.add(updateResource(newEntry));
        }

        if (deleteOnlyMentioned)
View Full Code Here


        }

        DownloadedSchemas downloadedSchemas = _importsDoc.getDownloadedSchemas();
        for (int i = 0; i < downloadedSchemas.sizeOfEntryArray(); i++)
        {
            DownloadedSchemaEntry cacheEntry = downloadedSchemas.getEntryArray(i);

            if (seenCacheEntries.contains(cacheEntry) == setToDelete)
            {
                SchemaResource resource = (SchemaResource)_resourceForCacheEntry.get(cacheEntry);
                warning("Removing obsolete cache entry for " + resource.getFilename());
View Full Code Here

            return result;
        }

        warning("Downloaded " + schemaLocation + " to " + targetFilename);

        DownloadedSchemaEntry newEntry = addNewEntry();
        newEntry.setFilename(targetFilename);
        newEntry.setSha1(digest);
        if (namespace != null)
            newEntry.setNamespace(namespace);
        newEntry.addSchemaLocation(schemaLocation);
        return updateResource(newEntry);
    }
View Full Code Here

        {
            SchemaResource resource = (SchemaResource)i.next();
            seenCacheEntries.add(resource._cacheEntry);
        }

        DownloadedSchemas downloadedSchemas = _importsDoc.getDownloadedSchemas();
        for (int i = 0; i < downloadedSchemas.sizeOfEntryArray(); i++)
        {
            DownloadedSchemaEntry cacheEntry = downloadedSchemas.getEntryArray(i);

            if (seenCacheEntries.contains(cacheEntry) == setToDelete)
            {
                SchemaResource resource = (SchemaResource)_resourceForCacheEntry.get(cacheEntry);
                warning("Removing obsolete cache entry for " + resource.getFilename());

                if (resource != null)
                {
                    _resourceForCacheEntry.remove(cacheEntry);

                    if (resource == _resourceForFilename.get(resource.getFilename()))
                        _resourceForFilename.remove(resource.getFilename());

                    if (resource == _resourceForDigest.get(resource.getSha1()))
                        _resourceForDigest.remove(resource.getSha1());

                    if (resource == _resourceForNamespace.get(resource.getNamespace()))
                        _resourceForNamespace.remove(resource.getNamespace());

                    // Finally, any or all URIs
                    String[] urls = resource.getSchemaLocationArray();
                    for (int j = 0; j < urls.length; j++)
                    {
                        if (resource == _resourceForURL.get(urls[j]))
                            _resourceForURL.remove(urls[j]);
                    }
                }

                downloadedSchemas.removeEntry(i);
                i -= 1;
            }
        }
    }
View Full Code Here

        return new QName(serviceName.getTargetNamespace(), serviceName.getStringValue());
    }

    public static ApplicationDescriptionType parseAppeDesc(String appDescAsStr) throws XregistryException {
        try {
            ApplicationDescriptionType appDesc = ApplicationDescriptionDocument.Factory.parse(
                    new StringReader(appDescAsStr)).getApplicationDescription();
            appDesc.validate();
            return appDesc;
        } catch (XmlException e) {
            throw new XregistryException(e);
        } catch (IOException e) {
            throw new XregistryException(e);
View Full Code Here

     *
     * @see xregistry.impl.DocumentRegistry#registerAppDesc(java.lang.String,
     *      java.lang.String)
     */
    public String registerAppDesc(String user, String appDescAsStr) throws XregistryException {
        ApplicationDescriptionType appDesc = DocParser.parseAppeDesc(appDescAsStr);
        String appName = DocParser.getAppName(appDesc.getApplicationName()).toString();
        String hostName = appDesc.getDeploymentDescription().getHostName();
        String resourceID = ResourceUtils.getResourceID(DocType.AppDesc, appName,hostName );
       
        // INSERT INTO appdesc_table(resourceid,qname,host_name,appdesc_str)
        // VALUES (?, ?, ?, ?)
        return registerResource(user, resourceID, ADD_APP_DESC_SQL, new SqlParam[] {
View Full Code Here

public class DocParser {

    public static String parseHostDesc(String hostDescAsStr) throws XregistryException {
        try {
            HostDescriptionType hostDesc = HostDescriptionDocument.Factory.parse(
                    new StringReader(hostDescAsStr)).getHostDescription();
            hostDesc.validate();
            return hostDesc.getHostName();
        } catch (XmlException e) {
            throw new XregistryException(e);
        } catch (IOException e) {
            throw new XregistryException(e);
        }
View Full Code Here

    }

    public static ServiceMapType parseServiceDesc(String serviceDescAsStr)
            throws XregistryException {
        try {
            ServiceMapType serviceDesc = ServiceMapDocument.Factory.parse(
                    new StringReader(serviceDescAsStr)).getServiceMap();
            serviceDesc.validate();
            return serviceDesc;
        } catch (XmlException e) {
            throw new XregistryException(e);
        } catch (IOException e) {
            throw new XregistryException(e);
View Full Code Here

        return null;
    }
   
    public static String createWsdl(String serviceMapAsStr,boolean isAbstract) throws XregistryException{
        try {
            ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapAsStr).getServiceMap();
            SchemaValidator validator = new SchemaValidator(serviceMap);
            validator.validate();
            QName serviceQname = new QName(serviceMap.getService().getServiceName()
                    .getTargetNamespace(), serviceMap.getService().getServiceName()
                    .getStringValue());
            WSDLGenerator wsdlGenerator = new WSDLGenerator();
            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null,
                    serviceMap, isAbstract);
            if(isAbstract){
View Full Code Here

     * @see xregistry.impl.DocumentRegistry#registerServiceDesc(java.lang.String,
     *      java.lang.String, java.lang.String)
     */
    public String registerServiceDesc(String user, String serviceDescAsStr, String awsdlAsStr)
            throws XregistryException {
        ServiceMapType serviceMapType = DocParser.parseServiceDesc(serviceDescAsStr);
        String serviceName = DocParser.getServiceName(serviceMapType.getService().getServiceName())
                .toString();
        String resourceID = ResourceUtils.getResourceID(DocType.ServiceDesc,serviceName);
        // INSERT INTO
        // service_map_table(resourceid,qname,servicemap_str,appname,awsdl_str)
        // VALUES (?, ?,?,?,?)
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterPortResource

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.