org.imixs.workflow.webservices.rest
Class RestClient

java.lang.Object
  extended by 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

Constructor Summary
RestClient()
           
 
Method Summary
 int postCollection(String uri, EntityCollection aEntityCol)
          This method posts an Entitycollection in the Imixs XML Format to a Rest Service URI Endpoint.
 int postEntity(String uri, XMLItemCollection aItemCol)
          This method posts an XMLItemCollection in the Imixs XML Format to a Rest Service URI Endpoint.
 void setCredentials(String auser, String apw)
           
 void setEncoding(String aEncoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestClient

public RestClient()
Method Detail

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 RUI
entityCol - - 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 RUI
entityCol - - an Entity Collection
Returns:
HTTPResult
Throws:
Exception


Copyright © 2009-2011 Imixs Software Solutions GmbH. All Rights Reserved.