Package com.ibm.xsp.extlib.sbt.services.client

Examples of com.ibm.xsp.extlib.sbt.services.client.SmartCloudService


    public ClientService createClientService(Endpoint endpoint, String url) throws ClientServicesException {
        if(StringUtil.isEmpty(url)){
            url = "files/basic/cmis/repository";
        }
        SmartCloudService svc = new SmartCloudService(endpoint);
        return svc;
    }
View Full Code Here


            }

            String fileId = request.getParameter(PARAM_ID);
            String repositoryId = request.getParameter(PARAM_REPOSITORY_ID);
            String href = "/" + repositoryId + "/object/snx:file!" + fileId + "/stream/" + fileId;
            SmartCloudService svc = (SmartCloudService) createClientService(bean, href);
            Object file;
          
            try {
                file =  svc.get("files/basic/cmis/repository/"+href).getData();
               
            } catch (ClientServicesException e) {
                throw new FacesExceptionEx(e, "Failed to perform proxy request");
            }
View Full Code Here

            InputStream is = null;
       
          try {
        is = new FileInputStream(serverFile);
        ContentStream contentFile = new ContentStream(is,serverFile.length(), name);
        SmartCloudService svc = new SmartCloudService(authBean);

        svc.post(SERVICE_URL, params, contentFile);
        
          } catch (ClientServicesException e) {
              e.printStackTrace();
          } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of com.ibm.xsp.extlib.sbt.services.client.SmartCloudService

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.