Package org.eclipse.jgit.errors

Examples of org.eclipse.jgit.errors.NotSupportedException


      if (!uriString.endsWith("/")) //$NON-NLS-1$
        uriString += "/"; //$NON-NLS-1$
      baseUrl = new URL(uriString);
      objectsUrl = new URL(baseUrl, "objects/"); //$NON-NLS-1$
    } catch (MalformedURLException e) {
      throw new NotSupportedException(MessageFormat.format(JGitText.get().invalidURL, uri), e);
    }
    http = local.getConfig().get(HTTP_KEY);
    proxySelector = ProxySelector.getDefault();
  }
View Full Code Here


          readSmartHeaders(in, service);
          return new SmartHttpPushConnection(in);

        } else if (!useSmartHttp) {
          final String msg = JGitText.get().smartHTTPPushDisabled;
          throw new NotSupportedException(msg);

        } else {
          final String msg = JGitText.get().remoteDoesNotSupportSmartHTTPPush;
          throw new NotSupportedException(msg);
        }
      } finally {
        in.close();
      }
    } catch (NotSupportedException err) {
View Full Code Here

        b.append(service);
      }

      u = new URL(b.toString());
    } catch (MalformedURLException e) {
      throw new NotSupportedException(MessageFormat.format(JGitText.get().invalidURL, uri), e);
    }

    try {
      int authAttempts = 1;
      for (;;) {
View Full Code Here

    return new BundleFetchConnection(this, src);
  }

  @Override
  public PushConnection openPush() throws NotSupportedException {
    throw new NotSupportedException(
        JGitText.get().pushIsNotSupportedForBundleTransport);
  }
View Full Code Here

      if (!uriString.endsWith("/")) //$NON-NLS-1$
        uriString += "/"; //$NON-NLS-1$
      baseUrl = new URL(uriString);
      objectsUrl = new URL(baseUrl, "objects/"); //$NON-NLS-1$
    } catch (MalformedURLException e) {
      throw new NotSupportedException(MessageFormat.format(JGitText.get().invalidURL, uri), e);
    }
    http = local.getConfig().get(HTTP_KEY);
    proxySelector = ProxySelector.getDefault();
  }
View Full Code Here

          readSmartHeaders(in, service);
          return new SmartHttpPushConnection(in);

        } else if (!useSmartHttp) {
          final String msg = JGitText.get().smartHTTPPushDisabled;
          throw new NotSupportedException(msg);

        } else {
          final String msg = JGitText.get().remoteDoesNotSupportSmartHTTPPush;
          throw new NotSupportedException(msg);
        }
      } finally {
        in.close();
      }
    } catch (NotSupportedException err) {
View Full Code Here

        b.append(service);
      }

      u = new URL(b.toString());
    } catch (MalformedURLException e) {
      throw new NotSupportedException(MessageFormat.format(JGitText.get().invalidURL, uri), e);
    }

    try {
      int authAttempts = 1;
      for (;;) {
View Full Code Here

  private void checkWriteOk() throws IOException {
    for (Iterator i = entries.values().iterator(); i.hasNext();) {
      Entry e = (Entry) i.next();
      if (e.getStage() != 0) {
        throw new NotSupportedException(JGitText.get().cannotWorkWithOtherStagesThanZeroRightNow);
      }
    }
  }
View Full Code Here

      if (proto.canHandle(uri, local, remoteName))
        return proto.open(uri, local, remoteName);
    }

    throw new NotSupportedException(MessageFormat.format(JGitText.get().URINotSupported, uri));
  }
View Full Code Here

  private static Properties loadPropertiesFile(File propsFile)
      throws NotSupportedException {
    try {
      return AmazonS3.properties(propsFile);
    } catch (IOException e) {
      throw new NotSupportedException(MessageFormat.format(
          JGitText.get().cannotReadFile, propsFile), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.errors.NotSupportedException

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.