public class OhCaller extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_ATOM_XML |
static String |
APPLICATION_JSON |
static String |
APPLICATION_XML |
static String |
contentTypeToBeUsed |
| Constructor and Description |
|---|
OhCaller(ConnectionFactory cf,
String urlPath) |
| Modifier and Type | Method and Description |
|---|---|
OhResult |
createEntry(String entitySetName,
org.json.JSONObject json) |
OhResult |
deleteEntry(String entityName,
Object id) |
void |
getAndStoreCookies(URLConnection conn) |
org.apache.olingo.odata2.api.edm.Edm |
readEdm() |
OhResult |
readEntry(String entitySetName,
Object keyValue) |
OhResult |
readEntry(String entitySetName,
Object keyValue,
OhQuery query) |
OhResult |
readFeed(String entitySetName,
OhQuery query) |
void |
setCookies(URLConnection conn) |
OhResult |
updateEntry(String entitySetName,
Object id,
org.json.JSONObject json) |
public static final String APPLICATION_JSON
public static final String APPLICATION_XML
public static final String APPLICATION_ATOM_XML
public static String contentTypeToBeUsed
public OhCaller(ConnectionFactory cf, String urlPath)
public org.apache.olingo.odata2.api.edm.Edm readEdm()
throws OhDataCallException
OhDataCallExceptionpublic void setCookies(URLConnection conn) throws URISyntaxException
URISyntaxExceptionpublic void getAndStoreCookies(URLConnection conn) throws URISyntaxException
URISyntaxExceptionpublic OhResult readFeed(String entitySetName, OhQuery query) throws OhDataCallException
OhDataCallExceptionpublic OhResult readEntry(String entitySetName, Object keyValue) throws OhDataCallException
OhDataCallExceptionpublic OhResult readEntry(String entitySetName, Object keyValue, OhQuery query) throws OhDataCallException
OhDataCallExceptionpublic OhResult createEntry(String entitySetName, org.json.JSONObject json) throws OhDataCallException
OhDataCallExceptionpublic OhResult updateEntry(String entitySetName, Object id, org.json.JSONObject json) throws OhDataCallException
OhDataCallExceptionpublic OhResult deleteEntry(String entityName, Object id) throws OhDataCallException
OhDataCallExceptionCopyright © 2017 Peter Helmich. All rights reserved.