Examples of UrlRepository


Examples of org.apache.ivy.plugins.repository.url.URLRepository

* This resolver is able to work with any URLs, it handles latest revisions
* with file and http urls only, and it does not handle publishing
*/
public class URLResolver extends RepositoryResolver {   
    public URLResolver() {
        setRepository(new URLRepository());
    }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLRepository

* This resolver is able to work with any URLs, it handles latest revisions with file and http urls
* only, and it does not handle publishing
*/
public class URLResolver extends RepositoryResolver {
    public URLResolver() {
        setRepository(new URLRepository());
    }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLRepository

                    getRepository().addTransferListener(eventManager);
                }
                Resource jarResource = new URLResource(url);
                CacheResourceOptions options = new CacheResourceOptions();
                report = getRepositoryCacheManager().downloadRepositoryResource(jarResource,
                    "jarrepository", "jar", "jar", options, new URLRepository());
            } finally {
                if (eventManager != null) {
                    getRepository().removeTransferListener(eventManager);
                }
            }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLRepository

        }
        ((ChainedRepository) getRepository()).setRepositories(repositories);
    }

    private File downloadMirrorList() {
        URLRepository urlRepository = new URLRepository();
        if (getEventManager() != null) {
            urlRepository.addTransferListener(getEventManager());
        }
        URLResource mirrorResource = new URLResource(mirrorListUrl);
        CacheResourceOptions options = new CacheResourceOptions();
        ArtifactDownloadReport report = getRepositoryCacheManager().downloadRepositoryResource(
            mirrorResource, "mirrorlist", "text", "txt", options, urlRepository);
View Full Code Here

Examples of org.jfree.repository.UrlRepository

    {
      // cannot proceed ..
      throw new URLRewriteException("DataRepository is no URL-Repository.");
    }

    final UrlRepository dataUrlRepo = (UrlRepository) dataRepository;
    final String dataPath = buildPath(dataEntity);
    final URL dataItemUrl;
    try
    {
      dataItemUrl = new URL(dataUrlRepo.getURL(), dataPath);
    }
    catch (MalformedURLException e)
    {
      // cannot proceed ..
      throw new URLRewriteException("DataEntity has no valid URL.");
    }

    final Repository documentRepository = sourceDocument.getRepository();
    if (documentRepository instanceof UrlRepository == false)
    {
      // If at least the data entity has an URL, we can always fall back
      // to an global URL..
      return dataItemUrl.toExternalForm();
    }

    try
    {
      final UrlRepository documentUrlRepo = (UrlRepository) documentRepository;
      final String documentPath = buildPath(sourceDocument);
      final URL documentUrl = new URL(documentUrlRepo.getURL(), documentPath);
      return IOUtils.getInstance().createRelativeURL(dataItemUrl, documentUrl);
    }
    catch (MalformedURLException e)
    {
      // If at least the data entity has an URL, we can always fall back
View Full Code Here

Examples of org.jfree.repository.UrlRepository

    {
      // cannot proceed ..
      throw new URLRewriteException("DataRepository is no URL-Repository.");
    }

    final UrlRepository dataUrlRepo = (UrlRepository) dataRepository;
    final String dataPath = buildPath(dataEntity);
    final URL dataItemUrl;
    try
    {
      dataItemUrl = new URL(dataUrlRepo.getURL(), dataPath);
    }
    catch (MalformedURLException e)
    {
      // cannot proceed ..
      throw new URLRewriteException("DataEntity has no valid URL.");
    }

    final Repository documentRepository = sourceDocument.getRepository();
    if (documentRepository instanceof UrlRepository == false)
    {
      // If at least the data entity has an URL, we can always fall back
      // to an global URL..
      return dataItemUrl.toExternalForm();
    }

    try
    {
      final UrlRepository documentUrlRepo = (UrlRepository) documentRepository;
      final String documentPath = buildPath(sourceDocument);
      final URL documentUrl = new URL(documentUrlRepo.getURL(), documentPath);
      return IOUtils.getInstance().createRelativeURL(dataItemUrl, documentUrl);
    }
    catch (MalformedURLException e)
    {
      // If at least the data entity has an URL, we can always fall back
View Full Code Here

Examples of org.pentaho.reporting.libraries.repository.UrlRepository

    {
      // cannot proceed ..
      throw new URLRewriteException("DataRepository is no URL-Repository.");
    }

    final UrlRepository dataUrlRepo = (UrlRepository) dataRepository;
    final String dataPath = buildPath(dataEntity);
    final URL dataItemUrl;
    try
    {
      dataItemUrl = new URL(dataUrlRepo.getURL(), dataPath);
    }
    catch (MalformedURLException e)
    {
      // cannot proceed ..
      throw new URLRewriteException("DataEntity has no valid URL.");
    }

    final Repository documentRepository = sourceDocument.getRepository();
    if (documentRepository instanceof UrlRepository == false)
    {
      // If at least the data entity has an URL, we can always fall back
      // to an global URL..
      return dataItemUrl.toExternalForm();
    }

    try
    {
      final UrlRepository documentUrlRepo = (UrlRepository) documentRepository;
      final String documentPath = buildPath(sourceDocument);
      final URL documentUrl = new URL(documentUrlRepo.getURL(), documentPath);
      return IOUtils.getInstance().createRelativeURL(dataItemUrl, documentUrl);
    }
    catch (MalformedURLException e)
    {
      // If at least the data entity has an URL, we can always fall back
View Full Code Here

Examples of org.pentaho.reporting.libraries.repository.UrlRepository

    {
      // cannot proceed ..
      throw new URLRewriteException("DataRepository is no URL-Repository.");
    }

    final UrlRepository dataUrlRepo = (UrlRepository) dataRepository;
    final String dataPath = buildPath(dataEntity);
    final URL dataItemUrl;
    try
    {
      dataItemUrl = new URL(dataUrlRepo.getURL(), dataPath);
    }
    catch (MalformedURLException e)
    {
      // cannot proceed ..
      throw new URLRewriteException("DataEntity has no valid URL.");
    }

    final Repository documentRepository = sourceDocument.getRepository();
    if (documentRepository instanceof UrlRepository == false)
    {
      // If at least the data entity has an URL, we can always fall back
      // to an global URL..
      return dataItemUrl.toExternalForm();
    }

    try
    {
      final UrlRepository documentUrlRepo = (UrlRepository) documentRepository;
      final String documentPath = buildPath(sourceDocument);
      final URL documentUrl = new URL(documentUrlRepo.getURL(), documentPath);
      return IOUtils.getInstance().createRelativeURL(dataItemUrl, documentUrl);
    }
    catch (MalformedURLException e)
    {
      // If at least the data entity has an URL, we can always fall back
View Full Code Here

Examples of org.pentaho.reporting.libraries.repository.UrlRepository

    {
      // cannot proceed ..
      throw new URLRewriteException("DataRepository is no URL-Repository.");
    }

    final UrlRepository dataUrlRepo = (UrlRepository) dataRepository;
    final String dataPath = buildPath(dataEntity);
    final URL dataItemUrl;
    try
    {
      dataItemUrl = new URL(dataUrlRepo.getURL(), dataPath);
    }
    catch (MalformedURLException e)
    {
      // cannot proceed ..
      throw new URLRewriteException("DataEntity has no valid URL.");
    }

    final Repository documentRepository = sourceDocument.getRepository();
    if (documentRepository instanceof UrlRepository == false)
    {
      // If at least the data entity has an URL, we can always fall back
      // to an global URL..
      return dataItemUrl.toExternalForm();
    }

    try
    {
      final UrlRepository documentUrlRepo = (UrlRepository) documentRepository;
      final String documentPath = buildPath(sourceDocument);
      final URL documentUrl = new URL(documentUrlRepo.getURL(), documentPath);
      return IOUtils.getInstance().createRelativeURL(dataItemUrl, documentUrl);
    }
    catch (MalformedURLException e)
    {
      // If at least the data entity has an URL, we can always fall back
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.