javax.ws.rs.DELETE.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(7.7k)|赞(0)|评价(0)|浏览(179)

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

DELETE.<init>介绍

暂无

代码示例

代码示例来源:origin: prestodb/presto

@DELETE
@Path("{taskId}/results/{bufferId}")
@Produces(MediaType.APPLICATION_JSON)
public void abortResults(@PathParam("taskId") TaskId taskId, @PathParam("bufferId") OutputBufferId bufferId, @Context UriInfo uriInfo)
{
  requireNonNull(taskId, "taskId is null");
  requireNonNull(bufferId, "bufferId is null");
  taskManager.abortTaskResults(taskId, bufferId);
}

代码示例来源:origin: prestodb/presto

@DELETE
@Path("{queryId}")
public void cancelQuery(@PathParam("queryId") QueryId queryId)
{
  requireNonNull(queryId, "queryId is null");
  queryManager.cancelQuery(queryId);
}

代码示例来源:origin: knowm/XChange

@DELETE
@Path("orders")
@Produces(MediaType.TEXT_PLAIN)
String deleteAllOrders(
  @HeaderParam("AC-ACCESS-KEY") String accessKey,
  @HeaderParam("AC-ACCESS-SIGN") ParamsDigest sign,
  @HeaderParam("AC-ACCESS-PASSPHRASE") String passphrase,
  @HeaderParam("AC-ACCESS-TIMESTAMP") String timestamp)
  throws IOException;

代码示例来源:origin: Graylog2/graylog2-server

@DELETE
@Timed
@RequiresPermissions(RestPermissions.LDAP_EDIT)
@ApiOperation("Remove the LDAP configuration")
@Path("/settings")
@AuditEvent(type = AuditEventTypes.LDAP_CONFIGURATION_DELETE)
public void deleteLdapSettings() {
  ldapSettingsService.delete();
}

代码示例来源:origin: traccar/traccar

@DELETE
public Response remove() {
  LogAction.logout(getUserId());
  request.getSession().removeAttribute(USER_ID_KEY);
  return Response.noContent().build();
}

代码示例来源:origin: prestodb/presto

@DELETE
@Path("{queryId}/{token}")
@Produces(MediaType.APPLICATION_JSON)
public Response cancelQuery(@PathParam("queryId") QueryId queryId,
    @PathParam("token") long token)
{
  Query query = queries.get(queryId);
  if (query == null) {
    return Response.status(Status.NOT_FOUND).build();
  }
  query.cancel();
  return Response.noContent().build();
}

代码示例来源:origin: prestodb/presto

@DELETE
  @Path("stage/{stageId}")
  public void cancelStage(@PathParam("stageId") StageId stageId)
  {
    requireNonNull(stageId, "stageId is null");
    queryManager.cancelStage(stageId);
  }
}

代码示例来源:origin: apache/incubator-druid

@DELETE
@Path("{resource}")
@Produces(MediaType.APPLICATION_JSON)
public Response delete()
{
 return Response.ok(DEFAULT_RESPONSE_CONTENT).build();
}

代码示例来源:origin: traccar/traccar

@DELETE
public Response remove(LinkedHashMap<String, Long> entity) throws SQLException, ClassNotFoundException {
  Context.getPermissionsManager().checkReadonly(getUserId());
  Permission permission = new Permission(entity);
  checkPermission(permission, false);
  Context.getDataManager().linkObject(permission.getOwnerClass(), permission.getOwnerId(),
      permission.getPropertyClass(), permission.getPropertyId(), false);
  LogAction.unlink(getUserId(), permission.getOwnerClass(), permission.getOwnerId(),
      permission.getPropertyClass(), permission.getPropertyId());
  Context.getPermissionsManager().refreshPermissions(permission);
  return Response.noContent().build();
}

代码示例来源:origin: knowm/XChange

@DELETE
@Path("orders/{id}")
@Produces(MediaType.TEXT_PLAIN)
void cancelOrder(
  @PathParam("id") String id,
  @HeaderParam("CB-ACCESS-KEY") String apiKey,
  @HeaderParam("CB-ACCESS-SIGN") ParamsDigest signer,
  @HeaderParam("CB-ACCESS-TIMESTAMP") SynchronizedValueFactory<Long> nonce,
  @HeaderParam("CB-ACCESS-PASSPHRASE") String passphrase)
  throws CoinbaseProException, IOException;

代码示例来源:origin: prestodb/presto

@DELETE
  @Path("{stageId}")
  public void cancelStage(@PathParam("stageId") StageId stageId)
  {
    requireNonNull(stageId, "stageId is null");
    queryManager.cancelStage(stageId);
  }
}

代码示例来源:origin: knowm/XChange

@DELETE
@Path("orders/{order-id}")
@Produces(MediaType.TEXT_PLAIN)
String deleteOrder(
  @PathParam("order-id") String orderID,
  @HeaderParam("AC-ACCESS-KEY") String accessKey,
  @HeaderParam("AC-ACCESS-SIGN") ParamsDigest sign,
  @HeaderParam("AC-ACCESS-PASSPHRASE") String passphrase,
  @HeaderParam("AC-ACCESS-TIMESTAMP") String timestamp)
  throws IOException;

代码示例来源:origin: apache/incubator-druid

@DELETE
@Path("/{dataSourceName}/segments/{segmentId}")
@ResourceFilters(DatasourceResourceFilter.class)
public Response deleteDatasourceSegment(
  @PathParam("dataSourceName") String dataSourceName,
  @PathParam("segmentId") String segmentId
)
{
 if (databaseSegmentManager.removeSegment(dataSourceName, segmentId)) {
  return Response.ok().build();
 }
 return Response.noContent().build();
}

代码示例来源:origin: knowm/XChange

@DELETE
@Path("orders?product_id={product-id}")
@Produces(MediaType.TEXT_PLAIN)
String deleteAllOrdersForProduct(
  @PathParam("product-id") String productID,
  @HeaderParam("AC-ACCESS-KEY") String accessKey,
  @HeaderParam("AC-ACCESS-SIGN") ParamsDigest sign,
  @HeaderParam("AC-ACCESS-PASSPHRASE") String passphrase,
  @HeaderParam("AC-ACCESS-TIMESTAMP") String timestamp)
  throws IOException;

代码示例来源:origin: pentaho/pentaho-kettle

@DELETE
@Path( "/remove/{id}/{name}/{path}/{type}" )
public Response delete( @PathParam( "id" ) String id, @PathParam( "name" ) String name,
            @PathParam( "path" ) String path, @PathParam( "type" ) String type ) {
 try {
  if ( repositoryBrowserController.remove( id, name, path, type ) ) {
   return Response.ok().build();
  }
 } catch ( KettleException ke ) {
  return Response.status( Response.Status.NOT_ACCEPTABLE ).build();
 }
 return Response.status( Response.Status.NOT_MODIFIED ).build();
}

代码示例来源:origin: apache/incubator-pinot

@DELETE
@Produces(MediaType.APPLICATION_JSON)
@Path("/schemas/{schemaName}")
@ApiOperation(value = "Delete a schema", notes = "Deletes a schema by name")
@ApiResponses(value = {@ApiResponse(code = 200, message = "Successfully deleted schema"), @ApiResponse(code = 404, message = "Schema not found"), @ApiResponse(code = 409, message = "Schema is in use"), @ApiResponse(code = 500, message = "Error deleting schema")})
public SuccessResponse deleteSchema(
  @ApiParam(value = "Schema name", required = true) @PathParam("schemaName") String schemaName) {
 deleteSchemaInternal(schemaName);
 return new SuccessResponse("Schema " + schemaName + " deleted");
}

代码示例来源:origin: elasticjob/elastic-job-lite

/**
 * 启用作业.
 *
 * @param jobName 作业名称
 */
@DELETE
@Path("/{jobName}/disable")
@Consumes(MediaType.APPLICATION_JSON)
public void enableJob(@PathParam("jobName") final String jobName) {
  jobAPIService.getJobOperatorAPI().enable(Optional.of(jobName), Optional.<String>absent());
}

代码示例来源:origin: Netflix/conductor

@DELETE
  @Path("/taskdefs/{tasktype}")
  @ApiOperation("Remove a task definition")
  public void unregisterTaskDef(@PathParam("tasktype") String taskType){
    metadataService.unregisterTaskDef(taskType);
  }
}

代码示例来源:origin: elasticjob/elastic-job-lite

/**
 * 启用作业.
 *
 * @param serverIp 服务器IP地址
 * @param jobName 作业名称
 */
@DELETE
@Path("/{serverIp}/jobs/{jobName}/disable")
public void enableServerJob(@PathParam("serverIp") final String serverIp, @PathParam("jobName") final String jobName) {
  jobAPIService.getJobOperatorAPI().enable(Optional.of(jobName), Optional.of(serverIp));
}

代码示例来源:origin: Netflix/conductor

@DELETE
@Path("/{workflowId}/remove")
@ApiOperation("Removes the workflow from the system")
@Consumes(MediaType.WILDCARD)
public void delete(@PathParam("workflowId") String workflowId,
          @QueryParam("archiveWorkflow") @DefaultValue("true") boolean archiveWorkflow) {
  workflowService.deleteWorkflow(workflowId, archiveWorkflow);
}

相关文章

微信公众号

最新文章

更多

DELETE类方法