public class OslcDocumentAccessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MXLogger |
OSLCLOGGER |
Constructor and Description |
---|
OslcDocumentAccessor() |
Modifier and Type | Method and Description |
---|---|
static OslcResource |
fetchOslcResource(OslcEndPointData oslcEndPointData,
java.lang.String resourceURI) |
static java.lang.String |
postPrefilledResource(OslcEndPointData oslcEndPointData,
java.lang.String cdURI,
byte[] postData) |
static byte[] |
postUpdatedResource(OslcEndPointData oslcEndPointData,
java.lang.String resourceURI,
byte[] postData,
java.lang.String etag) |
public static final MXLogger OSLCLOGGER
public static java.lang.String postPrefilledResource(OslcEndPointData oslcEndPointData, java.lang.String cdURI, byte[] postData) throws MXException
oslcEndPointData
- the endpoint encapsulationcdURI
- the creation dialog uri to which the prefilled resource is POSTed to get a new [creation dialog] link to the partially created resource.postData
- the prefilled resourceMXException
public static OslcResource fetchOslcResource(OslcEndPointData oslcEndPointData, java.lang.String resourceURI) throws MXException
oslcEndPointData
- the endpoint encapsulationresourceURI
- the resource uri to GET the resource.MXException
public static byte[] postUpdatedResource(OslcEndPointData oslcEndPointData, java.lang.String resourceURI, byte[] postData, java.lang.String etag) throws MXException
oslcEndPointData
- the endpoint detailsresourceURI
- the uri to which to PUT the updated resourcepostData
- the updated resource dataetag
- the Etag value which will make the update conditional [check if the resource have been modified by another user]MXException