org.restlet.resource.Post类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.restlet.resource.Post类的一些代码示例,展示了Post类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Post类的具体详情如下:
包路径:org.restlet.resource.Post
类名称:Post

Post介绍

暂无

代码示例

代码示例来源: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: com.github.ansell.oas/oas-webservice-api

/**
 * Updates a users details using an HTTP POST query.
 * 
 * @return
 * 
 */
@Post
Representation updateUserByPost(Representation entity, Variant variant) throws ResourceException;

代码示例来源:origin: com.github.ansell.oas/oas-webservice-api

/**
 * Deletes a user using an HTTP POST query.
 * 
 */
@Post
void deleteUserByPost(Representation entity, Variant variant) throws ResourceException;

代码示例来源:origin: com.github.ansell.oas/oas-webservice-api

/**
 * Edit user roles using an HTTP POST query.
 * 
 */
@Post
void editUserRolesByPost(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(AccountRepresentation account);

相关文章

微信公众号

最新文章

更多

Post类方法