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