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,
String userName2,
String password2,
UriInfo uriInfo)
Creates a consumer through the JNDI Rest API.
|
Response |
createConsumerOld(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)
Deprecated.
|
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,
String userName2,
String password2,
UriInfo uriInfo)
Creates a producer through the JNDI Rest API.
|
Response |
createProducerOld(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)
Deprecated.
|
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") @Deprecated public Response createProducerOld(@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="0") @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") @Consumes(value="text/plain") @Deprecated public Response createConsumerOld(@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)
@POST @Path(value="/{destName}/create-producer-fp") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") 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="0") @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, @FormParam(value="user") String userName2, @FormParam(value="password") String password2, @Context UriInfo uriInfo)
headers
- destName
- clientID
- prodName
- sessionMode
- deliveryMode
- deliveryDelay
- correlationID
- priority
- timeToLive
- idleTimeout
- userName
- password
- uriInfo
- @POST @Path(value="/{destName}/create-consumer-fp") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") 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, @FormParam(value="user") String userName2, @FormParam(value="password") String password2, @Context UriInfo uriInfo)
headers
- destName
- clientID
- consName
- sessionMode
- messageSelector
- noLocal
- durable
- shared
- subName
- idleTimeout
- userName
- password
- userName2
- password2
- uriInfo
- Copyright © 2019 ScalAgent D.T.. All rights reserved.