| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
basePaths |
protected org.gcube.common.gxhttp.request.GXHTTPStringRequest |
gxhttpStringRequest |
protected URL |
serviceURL |
| Modifier and Type | Method and Description |
|---|---|
String |
create(String json) |
String |
create(String json,
boolean socialPost) |
protected String |
create(String body,
Map<String,String> queryParams,
String... paths) |
protected String |
create(String body,
String... paths) |
protected String |
delete(Boolean purge,
String... paths) |
Void |
delete(String name) |
Void |
delete(String name,
boolean purge) |
void |
enforceServiceURL(URL enforcedServiceURL) |
protected static StringBuilder |
getStringBuilder(InputStream inputStream) |
protected void |
initRequest() |
String |
list(int limit,
int offset)
List the item in the organization correspondent to the current VRE.
|
String |
list(int limit,
int offset,
String organizationName)
List the item of a specific organization.
|
String |
list(Map<String,String> queryParams) |
protected String |
list(Map<String,String> queryParams,
String... paths) |
protected String |
parseHttpURLConnection(HttpURLConnection connection) |
protected String |
patch(String body,
String... paths) |
Void |
purge(String name) |
protected String |
read(String... paths) |
String |
read(String name) |
protected String |
update(String body,
String... paths) |
String |
update(String name,
String json) |
protected URL serviceURL
protected org.gcube.common.gxhttp.request.GXHTTPStringRequest gxhttpStringRequest
public Item()
throws MalformedURLException
MalformedURLExceptionpublic Item(URL enforcedServiceURL) throws MalformedURLException
MalformedURLExceptionpublic String list(int limit, int offset) throws javax.ws.rs.WebApplicationException
list(int, int, String)public String list(int limit, int offset, String organizationName) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionpublic Void delete(String name, boolean purge) throws WebServiceException
delete in interface org.gcube.gcat.api.interfaces.Item<String,Void>WebServiceExceptionpublic Void purge(String name) throws WebServiceException
purge in interface org.gcube.gcat.api.interfaces.Item<String,Void>WebServiceExceptionpublic void enforceServiceURL(URL enforcedServiceURL)
protected static StringBuilder getStringBuilder(InputStream inputStream) throws IOException
IOExceptionprotected String parseHttpURLConnection(HttpURLConnection connection) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionprotected void initRequest()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected String list(Map<String,String> queryParams, String... paths) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionprotected String read(String... paths) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionprotected String update(String body, String... paths) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionprotected String patch(String body, String... paths) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionCopyright © 2019. All Rights Reserved.