Package com.ibm.sbt.services.client.connections.follow.serializers

Examples of com.ibm.sbt.services.client.connections.follow.serializers.FollowSerializer


  public FollowedResource startFollowing(String source, String type, String resourceIdthrows ClientServicesException {
    FollowedResource resource = new FollowedResource();
    resource.setResourceId(resourceId);
    resource.setSource(source);
    resource.setResourceType(type);
    FollowSerializer serializer = new FollowSerializer(resource);
    String atomPayload = serializer.startFollowingPayload();
    String url = FollowUrls.format(source, this, Resource.get(resourceId));
    Response response = createData(url, generateParams(null, source, type, null), getAtomHeaders(), atomPayload);
    //Returns 200 but should be 201
    checkResponseCode(response, HTTPCode.OK);
    return getFollowFeedHandler().createEntity(response);
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.connections.follow.serializers.FollowSerializer

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.