org.apache.clerezza.platform.content
Class ContentPostSupport
java.lang.Object
org.apache.clerezza.platform.content.ContentPostSupport
@Service(value=java.lang.Object.class)
@Property(name="javax.ws.rs",
boolValue=true)
public class ContentPostSupport- extends Object
This Jax-rs root resource provides a method to post content to the content
graph
- Author:
- mir
|
Method Summary |
javax.ws.rs.core.Response |
postContent(org.apache.clerezza.jaxrs.utils.form.MultiPartBody form)
Creates an InfoDiscoBt (aka Binary Content) in the content graph.
This JAX-RS method is available under the path "content". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentPostSupport
public ContentPostSupport()
postContent
public javax.ws.rs.core.Response postContent(org.apache.clerezza.jaxrs.utils.form.MultiPartBody form)
- Creates an InfoDiscoBt (aka Binary Content) in the content graph.
This JAX-RS method is available under the path "content". It requires
a multipart/form with two fields: "content", which is the content of the
InfoDiscobit to be created and "uri" which is the uri of the new
InfoDiscoBit.
- Parameters:
form -
- Returns:
- Returns a Created (201) response, if the info bit was successfully
uploaded. Returns Bad Request (400) response, if required form fields are
missing. Returns a Conflict (409) response, if at the specified URI a
resource already exists.
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.