com.cumulocity.sdk.client
Class ResponseParser

java.lang.Object
  extended by com.cumulocity.sdk.client.ResponseParser

public class ResponseParser
extends Object


Constructor Summary
ResponseParser()
           
 
Method Summary
 void checkStatus(com.sun.jersey.api.client.ClientResponse response, int expectedStatusCode)
           
<T extends ResourceRepresentation>
T
parse(com.sun.jersey.api.client.ClientResponse response, int expectedStatusCode, Class<T> type)
           
 GId parseIdFromLocation(com.sun.jersey.api.client.ClientResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseParser

public ResponseParser()
Method Detail

parse

public <T extends ResourceRepresentation> T parse(com.sun.jersey.api.client.ClientResponse response,
                                                  int expectedStatusCode,
                                                  Class<T> type)
                                       throws SDKException
Throws:
SDKException

checkStatus

public void checkStatus(com.sun.jersey.api.client.ClientResponse response,
                        int expectedStatusCode)
                 throws SDKException
Throws:
SDKException

parseIdFromLocation

public GId parseIdFromLocation(com.sun.jersey.api.client.ClientResponse response)


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.