Modifier and Type | Field and Description |
---|---|
private Helper |
helper |
static String |
JNDI |
static org.objectweb.util.monolog.api.Logger |
logger |
Constructor and Description |
---|
JndiService() |
Modifier and Type | Method and Description |
---|---|
Response |
closeSessionCtx(HttpHeaders headers,
String ctxName,
UriInfo uriInfo) |
Response |
createConsumer(HttpHeaders headers,
String destName,
String clientID,
String consName,
int sessionMode,
String messageSelector,
boolean noLocal,
boolean durable,
boolean shared,
String subName,
long idleTimeout,
String userName,
String password,
UriInfo uriInfo) |
Response |
createProducer(HttpHeaders headers,
String destName,
String clientID,
String prodName,
int sessionMode,
int deliveryMode,
long deliveryDelay,
String correlationID,
int priority,
long timeToLive,
long idleTimeout,
String userName,
String password,
UriInfo uriInfo) |
String |
info(UriInfo uriInfo) |
Response |
lookupDestination(HttpHeaders headers,
String destName,
UriInfo uriInfo) |
public static org.objectweb.util.monolog.api.Logger logger
private final Helper helper
public static final String JNDI
@HEAD @Path(value="/{destName}") @Produces(value="text/plain") public Response lookupDestination(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @Context UriInfo uriInfo)
@POST @Path(value="/{destName}/create-producer") @Produces(value="text/plain") @Consumes(value="text/plain") public Response createProducer(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @QueryParam(value="client-id") String clientID, @QueryParam(value="name") String prodName, @DefaultValue(value="1")@QueryParam(value="session-mode") int sessionMode, @DefaultValue(value="2")@QueryParam(value="persistent") int deliveryMode, @DefaultValue(value=)@QueryParam(value="delivery-delay") long deliveryDelay, @QueryParam(value="correlation-id") String correlationID, @DefaultValue(value="4")@QueryParam(value="priority") int priority, @DefaultValue(value="0")@QueryParam(value="time-to-live") long timeToLive, @DefaultValue(value="0")@QueryParam(value="idle-timeout") long idleTimeout, @QueryParam(value="user") String userName, @QueryParam(value="password") String password, @Context UriInfo uriInfo)
@POST @Path(value="/{destName}/create-consumer") @Produces(value="text/plain") public Response createConsumer(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @QueryParam(value="client-id") String clientID, @QueryParam(value="name") String consName, @DefaultValue(value="1")@QueryParam(value="session-mode") int sessionMode, @QueryParam(value="selector") String messageSelector, @DefaultValue(value="false")@QueryParam(value="no-local") boolean noLocal, @DefaultValue(value="false")@QueryParam(value="durable") boolean durable, @DefaultValue(value="false")@QueryParam(value="shared") boolean shared, @QueryParam(value="sub-name") String subName, @DefaultValue(value="0")@QueryParam(value="idle-timeout") long idleTimeout, @QueryParam(value="user") String userName, @QueryParam(value="password") String password, @Context UriInfo uriInfo)
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.