@Path(value="/") @Consumes(value="application/json") @Produces(value="application/json") public class BusinessTransactionHandler extends Object
| Constructor and Description |
|---|
BusinessTransactionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBusinessTransactions(javax.ws.rs.container.AsyncResponse response,
String tenantId,
List<BusinessTransaction> btxns) |
protected static void |
decodeCorrelationIdentifiers(Set<CorrelationIdentifier> correlations,
String encoded)
This method processes a comma separated list of correlation identifiers, defined as a scope|value pair.
|
protected static void |
decodeProperties(Map<String,String> properties,
String encoded)
This method processes a comma separated list of properties, defined as a name|value pair.
|
void |
getBusinessTransaction(javax.ws.rs.container.AsyncResponse response,
String id) |
void |
queryBusinessTransactions(javax.ws.rs.container.AsyncResponse response,
long startTime,
long endTime,
String properties,
String correlations) |
@POST
@Path(value="/transactions")
public void addBusinessTransactions(@Suspended
javax.ws.rs.container.AsyncResponse response,
@HeaderParam(value="tenantId")
String tenantId,
List<BusinessTransaction> btxns)
@GET
@Path(value="/transactions/{id}")
@Produces(value="application/json")
public void getBusinessTransaction(@Suspended
javax.ws.rs.container.AsyncResponse response,
@PathParam(value="id")
String id)
@GET
@Path(value="/transactions")
@Produces(value="application/json")
public void queryBusinessTransactions(@Suspended
javax.ws.rs.container.AsyncResponse response,
@DefaultValue(value="0") @QueryParam(value="startTime")
long startTime,
@DefaultValue(value="0") @QueryParam(value="endTime")
long endTime,
@DefaultValue(value="") @QueryParam(value="properties")
String properties,
@DefaultValue(value="") @QueryParam(value="correlations")
String correlations)
protected static void decodeProperties(Map<String,String> properties, String encoded)
properties - The properties mapencoded - The string containing the encoded propertiesprotected static void decodeCorrelationIdentifiers(Set<CorrelationIdentifier> correlations, String encoded)
correlations - The correlation identifier setencoded - The string containing the encoded correlation identifiersCopyright © 2015 Red Hat, Inc.. All rights reserved.