com.cumulocity.sdk.client
Class ResponseParser
java.lang.Object
com.cumulocity.sdk.client.ResponseParser
public class ResponseParser
- extends Object
Method Summary |
void |
checkStatus(com.sun.jersey.api.client.ClientResponse response,
int expectedStatusCode)
|
|
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 |
ResponseParser
public ResponseParser()
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.