本文整理了Java中javax.ws.rs.PUT
类的一些代码示例,展示了PUT
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PUT
类的具体详情如下:
包路径:javax.ws.rs.PUT
类名称:PUT
暂无
代码示例来源:origin: knowm/XChange
@PUT
@Path("transactions/{transactionId}/resend_request")
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
CoinbaseBaseResponse resendRequest(
@PathParam("transactionId") String transactionId,
@HeaderParam("ACCESS_KEY") String apiKey,
@HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer,
@HeaderParam("ACCESS_NONCE") SynchronizedValueFactory<Long> nonce)
throws IOException, CoinbaseException;
代码示例来源:origin: aol/micro-server
@PUT
@Produces("application/json")
@Path("/put")
public ImmutableList<MyEntity> put(ImmutableMap<Integer,String> map) {
return result;
}
@DELETE
代码示例来源:origin: knowm/XChange
@PUT
@Path("orders/{order_id}/cancel")
QuoineOrderResponse cancelOrder(
@HeaderParam("X-Quoine-API-Version") int apiVersion,
@HeaderParam("X-Quoine-Auth") ParamsDigest signer,
@HeaderParam("Content-Type") String contentTyp,
@PathParam("order_id") String orderID)
throws IOException;
代码示例来源:origin: apache/incubator-pinot
@PUT
@Path("/tasks/scheduletasks")
@ApiOperation("Schedule tasks")
public Map<String, String> scheduleTasks() {
try {
return _pinotTaskManager.scheduleTasks();
} catch (Exception e) {
throw new WebApplicationException(e);
}
}
代码示例来源:origin: signalapp/Signal-Server
@Timed
@PUT
@Path("/signed")
@Consumes(MediaType.APPLICATION_JSON)
public void setSignedKey(@Auth Account account, @Valid SignedPreKey signedPreKey) {
Device device = account.getAuthenticatedDevice().get();
boolean wasAccountActive = account.isActive();
device.setSignedPreKey(signedPreKey);
accounts.update(account);
if (!wasAccountActive && account.isActive()) {
directoryQueue.addRegisteredUser(account.getNumber());
}
}
代码示例来源:origin: jersey/jersey
@Consumes(MediaType.APPLICATION_JSON)
@PUT
public DummyBean getAccount(DummyBean bean) {
return bean;
}
}
代码示例来源:origin: opentripplanner/OpenTripPlanner
/**
* Reload the graphs for all registered routerIds from disk.
*/
@RolesAllowed({ "ROUTERS" })
@PUT @Produces({ MediaType.APPLICATION_JSON })
public Response reloadGraphs(@QueryParam("path") String path,
@QueryParam("preEvict") @DefaultValue("true") boolean preEvict,
@QueryParam("force") @DefaultValue("true") boolean force) {
otpServer.getGraphService().reloadGraphs(preEvict, force);
return Response.status(Status.OK).build();
}
代码示例来源:origin: aol/micro-server
@PUT
@Produces("application/json")
@Path("/put")
public ImmutableList<MyEntity> put(ImmutableMap<Integer,String> map) {
return result;
}
@DELETE
代码示例来源:origin: prestodb/presto
@PUT
@Path("{queryId}/killed")
public Response killQuery(@PathParam("queryId") QueryId queryId, String message)
{
return failQuery(queryId, createKillQueryException(message));
}
代码示例来源:origin: Graylog2/graylog2-server
@PUT
@Path("config")
@ApiOperation("Update authentication providers configuration")
@RequiresPermissions({CLUSTER_CONFIG_ENTRY_READ, AUTHENTICATION_EDIT})
@AuditEvent(type = AuditEventTypes.AUTHENTICATION_PROVIDER_CONFIGURATION_UPDATE)
public AuthenticationConfig create(@ApiParam(name = "config", required = true) final AuthenticationConfig config) {
clusterConfigService.write(config);
return clusterConfigService.getOrDefault(AuthenticationConfig.class, config);
}
}
代码示例来源:origin: scouter-project/scouter
/**
* store key-values on scouter key-value store
*/
@PUT
@Path("/:bulk")
@Consumes(MediaType.APPLICATION_JSON)
public CommonResultView<List<KeyValueData>> setBulk(SetKvBulkRequest request) {
List<KeyValueData> resultList = kvStoreService.setBulk(request.toMap(), request.getTtl(), ServerManager.getInstance().getServerIfNullDefault(request.getServerId()));
return CommonResultView.success(resultList);
}
}
代码示例来源:origin: jersey/jersey
@Consumes(MediaType.APPLICATION_JSON)
@PUT
public DummyBean getAccount(final DummyBean bean) {
return bean;
}
}
代码示例来源:origin: knowm/XChange
@PUT
@Path("users/{userId}")
@Consumes(MediaType.APPLICATION_JSON)
CoinbaseUser updateUser(
@PathParam("userId") String userId,
CoinbaseUser user,
@HeaderParam("ACCESS_KEY") String apiKey,
@HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer,
@HeaderParam("ACCESS_NONCE") SynchronizedValueFactory<Long> nonce)
throws IOException, CoinbaseException;
代码示例来源:origin: aol/micro-server
@PUT
@Produces("application/json")
@Path("/put")
public ImmutableSet<String> put(ImmutableMap<Integer,String> map) {
return ImmutableSet.copyOf(map.values());
}
@DELETE
代码示例来源:origin: prestodb/presto
@PUT
@Path("{queryId}/preempted")
public Response preemptQuery(@PathParam("queryId") QueryId queryId, String message)
{
return failQuery(queryId, createPreemptQueryException(message));
}
代码示例来源:origin: Graylog2/graylog2-server
@PUT
@Timed
@ApiOperation(value = "Update message processor configuration")
@Path("config")
@AuditEvent(type = AuditEventTypes.MESSAGE_PROCESSOR_CONFIGURATION_UPDATE)
public MessageProcessorsConfigWithDescriptors updateConfig(@ApiParam(name = "config", required = true) final MessageProcessorsConfigWithDescriptors configWithDescriptors) {
checkPermission(RestPermissions.CLUSTER_CONFIG_ENTRY_EDIT);
final MessageProcessorsConfig config = configWithDescriptors.toConfig();
clusterConfigService.write(config.withProcessors(processorClassNames));
return configWithDescriptors;
}
}
代码示例来源:origin: jersey/jersey
@PUT
@Consumes(MediaType.APPLICATION_XML)
public void setCustomer(final Customer c) {
setCustomerToStatic(c);
}
代码示例来源:origin: knowm/XChange
@PUT
@Path("transactions/{transactionId}/complete_request")
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
CoinbaseTransaction completeRequest(
@PathParam("transactionId") String transactionId,
@HeaderParam("ACCESS_KEY") String apiKey,
@HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer,
@HeaderParam("ACCESS_NONCE") SynchronizedValueFactory<Long> nonce)
throws IOException, CoinbaseException;
代码示例来源:origin: aol/micro-server
@PUT
@Produces("application/json")
@Path("/put")
public ImmutableSet<String> put(ImmutableMap<Integer,String> map) {
return ImmutableSet.copyOf(map.values());
}
@DELETE
代码示例来源:origin: neo4j/neo4j
@PUT
@Path( PATH_AUTO_INDEX_STATUS )
public Response setAutoIndexerEnabled( @PathParam( "type" ) String type, String enable )
{
actions.setAutoIndexerEnabled( type, Boolean.parseBoolean( enable ) );
return output.ok( Representation.emptyRepresentation() );
}
内容来源于网络,如有侵权,请联系作者删除!