org.imixs.workflow.webservices.rest
Class RestClient
java.lang.Object
org.imixs.workflow.webservices.rest.RestClient
public class RestClient
- extends Object
This ServiceClient is a WebService REST Client which encapsulate the
communication with a REST web serice based on the Imixs Workflow REST API.
The Implementation is based on the JAXB API.
The ServiceClient supports methods for posting EntityCollections and
XMLItemCollections.
The post method expects the rest service URI and a Dataobject based ont the
Imixs Workflow XML API
- Author:
- Ralph Soika
- See Also:
org.imixs.workflow.jee.rest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestClient
public RestClient()
setCredentials
public void setCredentials(String auser,
String apw)
setEncoding
public void setEncoding(String aEncoding)
postEntity
public int postEntity(String uri,
XMLItemCollection aItemCol)
throws Exception
- This method posts an XMLItemCollection in the Imixs XML Format to a Rest
Service URI Endpoint.
- Parameters:
uri - - Rest Endpoint RUIentityCol - - an Entity Collection
- Returns:
- HTTPResult
- Throws:
Exception
postCollection
public int postCollection(String uri,
EntityCollection aEntityCol)
throws Exception
- This method posts an Entitycollection in the Imixs XML Format to a Rest
Service URI Endpoint.
- Parameters:
uri - - Rest Endpoint RUIentityCol - - an Entity Collection
- Returns:
- HTTPResult
- Throws:
Exception
Copyright © 2009-2011 Imixs Software Solutions GmbH. All Rights Reserved.