当前位置: 首页>>代码示例>>Java>>正文


Java PATCH类代码示例

本文整理汇总了Java中javax.ws.rs.PATCH的典型用法代码示例。如果您正苦于以下问题:Java PATCH类的具体用法?Java PATCH怎么用?Java PATCH使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PATCH类属于javax.ws.rs包,在下文中一共展示了PATCH类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createObject

import javax.ws.rs.PATCH; //导入依赖的package包/类
/**
 * Update an object using SPARQL-UPDATE
 *
 * @param requestBodyStream SPARQL-update request
 * @return
 */
@PATCH
@Consumes({WebContent.contentTypeSPARQLUpdate})
public Response createObject(@ContentLocation final InputStream requestBodyStream) {

    // TODO: Parse and persist the changes indicated in the sparql-update

    return noContent().build();
}
 
开发者ID:duraspace,项目名称:lambdora,代码行数:15,代码来源:LambdoraLdp.java

示例2: update

import javax.ws.rs.PATCH; //导入依赖的package包/类
/**
 * Self-updates user.
 *
 * @param patch modification to be applied to self
 * @return Response object featuring the updated user - ProvisioningResult as Entity
 */
@ApiOperation(value = "", authorizations = {
    @Authorization(value = "BasicAuthentication")
    , @Authorization(value = "Bearer") })
@PATCH
@Path("{key}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
Response update(@NotNull UserPatch patch);
 
开发者ID:apache,项目名称:syncope,代码行数:15,代码来源:UserSelfService.java

示例3: handlePatchDatastore

import javax.ws.rs.PATCH; //导入依赖的package包/类
/**
 * Handles a RESTCONF PATCH operation against the entire data store.
 * If the PATCH request succeeds, a "200 OK" status-line is returned if
 * there is a message-body, and "204 No Content" is returned if no
 * response message-body is sent.
 *
 * @param stream Input JSON object
 * @return HTTP response
 */
@PATCH
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("data")
public Response handlePatchDatastore(InputStream stream) {
    log.debug("handlePatchDatastore");
    return handlePatchRequest(null, stream);
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:18,代码来源:RestconfWebResource.java

示例4: update

import javax.ws.rs.PATCH; //导入依赖的package包/类
/**
 * Updates group matching the provided key.
 *
 * @param groupPatch modification to be applied to group matching the provided key
 * @return Response object featuring the updated group enriched with propagation status information
 * - ProvisioningResult as Entity
 */
@PATCH
@Path("{key}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
Response update(@NotNull GroupPatch groupPatch);
 
开发者ID:apache,项目名称:syncope,代码行数:13,代码来源:GroupService.java

示例5: update

import javax.ws.rs.PATCH; //导入依赖的package包/类
/**
 * Updates any object matching the provided key.
 *
 * @param anyObjectPatch modification to be applied to any object matching the provided key
 * @return Response object featuring the updated any object enriched with propagation status information
 * - ProvisioningResult as Entity
 */
@PATCH
@Path("{key}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
Response update(@NotNull AnyObjectPatch anyObjectPatch);
 
开发者ID:apache,项目名称:syncope,代码行数:13,代码来源:AnyObjectService.java

示例6: update

import javax.ws.rs.PATCH; //导入依赖的package包/类
/**
 * Updates user matching the provided key.
 *
 * @param userPatch modification to be applied to user matching the provided key
 * @return Response object featuring the updated user enriched with propagation status information
 * - ProvisioningResult as Entity
 */
@PATCH
@Path("{key}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
Response update(@NotNull UserPatch userPatch);
 
开发者ID:apache,项目名称:syncope,代码行数:13,代码来源:UserService.java


注:本文中的javax.ws.rs.PATCH类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。