Sub-requests from Accessors

Poster Content
nk4um Administrator
Posts: 607
September 26, 2007 18:20Less lines of code that's all
The delete() method is a convenience method which does exactly what you show!

The representation returned from delete should contain a single boolean aspect that indicates the success of the deletion. I''m looking for the documentation of this but not succeeding.

Tony
Like · Post Reply
nk4um User
Posts: 79
September 26, 2007 17:27Sub-requests from Accessors
Is there any differernce (pro-con) between the two approaches below:

1. Delete a resource based on a URI using the context

context.delete(resourceURI);


2. Create a INKFRequest and issue it using context

INKFRequest request = context.createSubRequest();
request.setURI(resourceURI)
request.setRequestType(INKFRequestReadOnly.RQT_DELETE);
context.issueSubRequest(request);


And if use the second approach what would be returned IURRepresentation?
Like · Post Reply