Package net.sf.redmine_mylyn.api.exception

Examples of net.sf.redmine_mylyn.api.exception.RedmineApiRemoteException


    monitor.beginTask(Messages.PROGRESS_DOWNLOAD_ATTACHMENT, 1);
   
    //WOrkaround: Attachments::download dosn't support API-AUTH - this starts a session
    String token = getAuthenticityToken(monitor);
    if(token==null) {
      throw new RedmineApiRemoteException(Messages.ERRMSG_AUTH_TOKEN_REQUEST_FAILED);
    }
   
    GetMethod method = new GetMethod(String.format(URL_GET_ATTACHMENT, attachmentId, fileName));
    InputStream attachment = executeMethod(method, attachmentParser, monitor, HttpStatus.SC_OK, HttpStatus.SC_NOT_FOUND);
View Full Code Here


   
    Object response = null;
   
    String token = getAuthenticityToken(monitor);
    if(token==null) {
      throw new RedmineApiRemoteException(Messages.ERRMSG_AUTH_TOKEN_REQUEST_FAILED);
    }
   
    try {
      PutMethod method = new PutMethod(String.format(URL_UPDATE_ISSUE, issueId));
     
View Full Code Here

   
    @Override
    public void startPrefixMapping(String prefix, String uri) throws SAXException {
      if(uri.equals(UNSUPPORTED_NS)) {
        String msg = Messages.ERRMSG_UNSUPPORTED_REDMINE_VERSION;
        throw new SAXException(msg, new RedmineApiRemoteException(msg));
      }
     
      if(!uri.equals(SUPPORTED_NS)) {
        String msg = Messages.ERRMSG_INVALID_REDMINE_URL;
        throw new SAXException(msg, new RedmineApiRemoteException(msg));
      }
     
      super.startPrefixMapping(prefix, uri);
    }
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.exception.RedmineApiRemoteException

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.