當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。