| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
basePaths |
protected org.gcube.common.gxhttp.request.GXHTTPStringRequest |
gxhttpStringRequest |
protected URL |
serviceURL |
| Constructor and Description |
|---|
Profile() |
Profile(URL enforcedServiceURL) |
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
protected String |
create(String body,
Map<String,String> queryParams,
String... paths) |
protected String |
create(String body,
String... paths) |
String |
create(String name,
String xml) |
protected String |
createOrUpdate(String name,
String xml) |
protected String |
delete(Boolean purge,
String... paths) |
Void |
delete(String name) |
void |
enforceServiceURL(URL enforcedServiceURL) |
protected static StringBuilder |
getStringBuilder(InputStream inputStream) |
protected void |
initRequest() |
String |
list() |
protected String |
list(Map<String,String> queryParams,
String... paths) |
protected String |
parseHttpURLConnection(HttpURLConnection connection) |
protected String |
patch(String body,
String... paths) |
protected String |
read(String... paths) |
String |
read(String name) |
String |
read(String name,
boolean asJSON) |
protected String |
update(String body,
String... paths) |
String |
update(String name,
String xml) |
protected URL serviceURL
protected org.gcube.common.gxhttp.request.GXHTTPStringRequest gxhttpStringRequest
public Profile()
throws MalformedURLException
MalformedURLExceptionpublic Profile(URL enforcedServiceURL) throws MalformedURLException
MalformedURLExceptionpublic int count()
throws WebServiceException
count in interface org.gcube.gcat.api.interfaces.Profile<String,Void>WebServiceExceptionpublic String list() throws javax.ws.rs.WebApplicationException
public 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 © 2021. All Rights Reserved.