Java 类javax.ws.rs.PATCH 实例源码
项目:lambdora
文件:LambdoraLdp.java
/**
* 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();
}
项目:syncope
文件:UserSelfService.java
/**
* 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);
项目:onos
文件:RestconfWebResource.java
/**
* 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);
}
项目:syncope
文件:GroupService.java
/**
* 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);
项目:syncope
文件:AnyObjectService.java
/**
* 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);
项目:syncope
文件:UserService.java
/**
* 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);