@Path(value="/jndi") public class JndiService extends Object
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 |
---|---|
javax.ws.rs.core.Response |
closeSessionCtx(javax.ws.rs.core.HttpHeaders headers,
String ctxName,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createConsumer(javax.ws.rs.core.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,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createProducer(javax.ws.rs.core.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,
javax.ws.rs.core.UriInfo uriInfo) |
String |
info(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
lookupDestination(javax.ws.rs.core.HttpHeaders headers,
String destName,
javax.ws.rs.core.UriInfo uriInfo) |
public static org.objectweb.util.monolog.api.Logger logger
private final Helper helper
public static final String JNDI
@GET @Produces(value="text/html") public String info(@Context javax.ws.rs.core.UriInfo uriInfo)
@HEAD @Path(value="/{destName}") @Produces(value="text/plain") public javax.ws.rs.core.Response lookupDestination(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="destName") String destName, @Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/{destName}/create-producer") @Produces(value="text/plain") @Consumes(value="text/plain") public javax.ws.rs.core.Response createProducer(@Context javax.ws.rs.core.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=<error>) @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 javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/{destName}/create-consumer") @Produces(value="text/plain") public javax.ws.rs.core.Response createConsumer(@Context javax.ws.rs.core.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 javax.ws.rs.core.UriInfo uriInfo)
@DELETE @Path(value="/{name}") @Produces(value="text/plain") @Consumes(value="text/plain") public javax.ws.rs.core.Response closeSessionCtx(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="name") String ctxName, @Context javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.