Package com.ibm.sbt.services.client.ClientService

Examples of com.ibm.sbt.services.client.ClientService.ContentPart


  protected ActivityNode createActivityNodeEntity(String requestUrl, ActivityNode activityNode, String fileName, InputStream fileContent, String mimeType, Map<String, String> parameters) throws ClientServicesException {
    try {
      ActivityNodeSerializer serializer = new ActivityNodeSerializer(activityNode);

      List<ClientService.ContentPart> contentParts = new ArrayList<ClientService.ContentPart>();
      contentParts.add(new ContentPart("activityNode", serializer.generateCreate(), APPLICATION_ATOM_XML));
      contentParts.add(new ContentPart(fileName, fileContent, fileName, mimeType));

      Response response = createData(requestUrl, parameters, getMultipartHeaders(), contentParts);
      checkResponseCode(response, HTTPCode.CREATED);
      return updateActivityNodeEntityData(activityNode, response);
    } catch (ClientServicesException e) {
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.ClientService.ContentPart

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.