本文整理了Java中org.restlet.resource.Post.<init>()
方法的一些代码示例,展示了Post.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Post.<init>()
方法的具体详情如下:
包路径:org.restlet.resource.Post
类名称:Post
方法名:<init>
暂无
代码示例来源:origin: uber/chaperone
@Override
@Post("json")
public Representation post(Representation entity) {
try {
代码示例来源:origin: org.restlet.jse/org.restlet.example
/**
* Add the given account to the list and returns its position as an
* identifier.
*
* @param account
* The account to add.
* @return The account identifier.
*/
@Post
String add(AccountRepresentation account);
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Remove these resources.
*/
@Post
void deleteAnnotations(Representation entity, Variant variant) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Update the underlying ontology using a MultiPart representation with an HTTP POST request.
*
* This method needs to be distinct from OntologyResource to avoid confusing it with respect to
* POST as a poor substitute for HTTP DELETE for DeleteOntologyResource.
*
* Responses to multi-part queries redirect the user using HTTP 303 See Also status code to the
* ontology manager.
*/
@Post("multipart")
Representation createOntologyMultiPartByPost(Representation entity) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Update the underlying ontology using an RDF representation with an HTTP POST request.
*
* This method needs to be distinct from OntologyResource to avoid confusing it with respect to
* POST as a poor substitute for HTTP DELETE for DeleteOntologyResource.
*
* @return The resulting annotation, including any changes in the URIs.
*/
@Post("rdf")
Representation createOntologyRdfByPost(Representation entity) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Update the underlying contact according to the given representation.
*
* @return The resulting annotation, including any changes in the URIs.
*/
@Post(":rdf|rj|json|ttl")
Representation postRdfToRdf(Representation entity, Variant variant) throws ResourceException;
代码示例来源:origin: org.restlet.jse/org.restlet.example
/**
* Add the given account to the list and returns its position as an
* identifier.
*
* @param account
* The account to add.
* @return The account identifier.
*/
@Post
String add(String account);
代码示例来源:origin: org.restlet.jse/org.restlet.example
/**
* Add the given account to the list and returns its position as an
* identifier.
*
* @param account
* The account to add.
* @return The account identifier.
*/
@Post("txt")
String add(String account);
代码示例来源:origin: org.restlet.jse/org.restlet.example
/**
* Add the given account to the list and returns its position as an
* identifier.
*
* @param account
* The account to add.
* @return The account identifier.
*/
@Post
String add(String account);
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Remove this resource, using the parameter ontologyUri and the optional parameter
* managedOntologyVersionUri to specify which ontology, or versions of the ontology to delete.
*
* This wraps the true REST version in OntologyResource which uses HTTP DELETE.
*
* Cannot put this version on that resource, or it would not be able to automatically
* distinguish between a Delete POST operation and a Create POST operation.
*
*/
@Post
void deleteOntologyByPost(Representation entity, Variant variant) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Handles POST requests to create a new user.
*
* @param entity
* @return
* @throws ResourceException
*/
@Post("multipart")
Representation postCreateUserMultipart(Representation entity) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Accept POST for bulk retrieval and response with the HTML representation of this resource.
*/
@Post(":html")
Representation postToHtml(Representation entity, Variant variant) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Accept POST for bulk retrieval and response with the RDF representation of this resource.
*/
@Post(":rdf|rj|json|ttl")
Representation postToRdf(Representation entity, Variant variant) throws ResourceException;
代码示例来源:origin: com.github.ansell.oas/oas-webservice-api
/**
* Update the underlying contact according to the given representation.
*
* @return The resulting annotation, including any changes in the URIs.
*/
@Post(":html")
Representation postRdfToHtml(Representation entity, Variant variant) throws ResourceException;
代码示例来源:origin: org.restlet.jse/org.restlet.example
/**
* Add the given account to the list and returns its position as an
* identifier.
*
* @param account
* The account to add.
* @return The account identifier.
*/
@Post
String add(String account);
代码示例来源:origin: org.restlet.jse/org.restlet.example
/**
* Add the given account to the list and returns its position as an
* identifier.
*
* @param account
* The account to add.
* @return The account identifier.
*/
@Post
String add(String account);
代码示例来源:origin: locationtech/geowave
@Post("form|json:json")
public Representation restPost(final Representation request) throws Exception {
return handleRequestWithPayload(HttpMethod.POST, request);
}
代码示例来源:origin: ontopia/ontopia
@Post
public Collection<TopicNameIF> getTopicNames(String value) {
return getIndex(NameIndexIF.class).getTopicNames(value);
}
}
代码示例来源:origin: ontopia/ontopia
@Post
public VariantNameIF changeVariantName(VariantName variant) {
VariantNameIF result = getController(VariantNameController.class).change(getTopicMap(), resolve(), variant);
store.commit();
return result;
}
代码示例来源:origin: ontopia/ontopia
@Post
public AssociationRoleIF changeAssociationRole(AssociationRole role) {
AssociationRoleIF result = getController(RoleController.class).change(getTopicMap(), resolve(), role);
store.commit();
return result;
}
内容来源于网络,如有侵权,请联系作者删除!