public abstract class AbstractClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseURI |
protected List<javax.ws.rs.client.ClientRequestFilter> |
requestFilterList |
protected SSLContext |
sslContext |
| Constructor and Description |
|---|
AbstractClient(String base_uri)
Initialize the client by a BASE_URL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseURI() |
List<org.imixs.workflow.ItemCollection> |
getCustomResource(String uri)
Returns the custom data list by uri GET
|
org.imixs.workflow.xml.XMLDataCollection |
getCustomResourceXML(String uri)
Returns the custom data list by uri GET as a collection of XMLDocument
elements.
|
SSLContext |
getSslContext() |
javax.ws.rs.client.WebTarget |
getWebTarget(String uri)
Returns a WebTarget object for a given uri.
|
void |
logout()
Calls the /logout/ target of the rest api endpoint
|
javax.ws.rs.client.Client |
newClient()
This method creates a new javax.ws.rs.client.Client instance using the
default client builder implementation class provided by the JAX-RS
implementation provider.
|
void |
registerClientRequestFilter(javax.ws.rs.client.ClientRequestFilter filter)
Register a ClientRequestFilter instance.
|
void |
setBaseURI(String baseURI) |
void |
setSslContext(SSLContext sslContext) |
protected String baseURI
protected SSLContext sslContext
protected List<javax.ws.rs.client.ClientRequestFilter> requestFilterList
public AbstractClient(String base_uri)
base_uri - public SSLContext getSslContext()
public void setSslContext(SSLContext sslContext)
public void registerClientRequestFilter(javax.ws.rs.client.ClientRequestFilter filter)
filter - - request filter instance.public String getBaseURI()
public void setBaseURI(String baseURI)
public javax.ws.rs.client.Client newClient()
The method registers all known filter instances.
The client instance should be closed after the request if finished.
The method verifies if a sslContext exists. In this case a client this context will be generated
public void logout()
client - RestAPIExceptionpublic List<org.imixs.workflow.ItemCollection> getCustomResource(String uri) throws RestAPIException
userid - items - RestAPIExceptionpublic org.imixs.workflow.xml.XMLDataCollection getCustomResourceXML(String uri) throws RestAPIException
userid - items - RestAPIExceptionpublic javax.ws.rs.client.WebTarget getWebTarget(String uri) throws RestAPIException
uri - RestAPIExceptionCopyright © 2018–2023 Imixs Software Solutions GmbH. All rights reserved.