Class JndiService


  • @Path("/jndi")
    public final class JndiService
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JndiService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response closeSessionCtx​(jakarta.ws.rs.core.HttpHeaders headers, String ctxName, jakarta.ws.rs.core.UriInfo uriInfo)  
      jakarta.ws.rs.core.Response createConsumer​(jakarta.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, jakarta.ws.rs.core.UriInfo uriInfo)
      Creates a consumer through the JNDI Rest API.
      jakarta.ws.rs.core.Response createConsumerOld​(jakarta.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, jakarta.ws.rs.core.UriInfo uriInfo)
      Deprecated.
      jakarta.ws.rs.core.Response createProducer​(jakarta.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, jakarta.ws.rs.core.UriInfo uriInfo)
      Creates a producer through the JNDI Rest API.
      jakarta.ws.rs.core.Response createProducerOld​(jakarta.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, jakarta.ws.rs.core.UriInfo uriInfo)
      Deprecated.
      String info​(jakarta.ws.rs.core.UriInfo uriInfo)  
      jakarta.ws.rs.core.Response lookupDestination​(jakarta.ws.rs.core.HttpHeaders headers, String destName, jakarta.ws.rs.core.UriInfo uriInfo)  
    • Constructor Detail

      • JndiService

        public JndiService()
    • Method Detail

      • info

        @GET
        @Produces("text/html")
        public String info​(@Context
                           jakarta.ws.rs.core.UriInfo uriInfo)
      • lookupDestination

        @HEAD
        @Path("/{destName}")
        @Produces("text/plain")
        public jakarta.ws.rs.core.Response lookupDestination​(@Context
                                                             jakarta.ws.rs.core.HttpHeaders headers,
                                                             @PathParam("destName")
                                                             String destName,
                                                             @Context
                                                             jakarta.ws.rs.core.UriInfo uriInfo)
      • createProducerOld

        @POST
        @Path("/{destName}/create-producer")
        @Produces("text/plain")
        @Consumes("text/plain")
        @Deprecated
        public jakarta.ws.rs.core.Response createProducerOld​(@Context
                                                             jakarta.ws.rs.core.HttpHeaders headers,
                                                             @PathParam("destName")
                                                             String destName,
                                                             @QueryParam("client-id")
                                                             String clientID,
                                                             @QueryParam("name")
                                                             String prodName,
                                                             @DefaultValue("1") @QueryParam("session-mode")
                                                             int sessionMode,
                                                             @DefaultValue("2") @QueryParam("persistent")
                                                             int deliveryMode,
                                                             @DefaultValue("0") @QueryParam("delivery-delay")
                                                             long deliveryDelay,
                                                             @QueryParam("correlation-id")
                                                             String correlationID,
                                                             @DefaultValue("4") @QueryParam("priority")
                                                             int priority,
                                                             @DefaultValue("0") @QueryParam("time-to-live")
                                                             long timeToLive,
                                                             @DefaultValue("0") @QueryParam("idle-timeout")
                                                             long idleTimeout,
                                                             @QueryParam("user")
                                                             String userName,
                                                             @QueryParam("password")
                                                             String password,
                                                             @Context
                                                             jakarta.ws.rs.core.UriInfo uriInfo)
        Deprecated.
      • createConsumerOld

        @POST
        @Path("/{destName}/create-consumer")
        @Produces("text/plain")
        @Consumes("text/plain")
        @Deprecated
        public jakarta.ws.rs.core.Response createConsumerOld​(@Context
                                                             jakarta.ws.rs.core.HttpHeaders headers,
                                                             @PathParam("destName")
                                                             String destName,
                                                             @QueryParam("client-id")
                                                             String clientID,
                                                             @QueryParam("name")
                                                             String consName,
                                                             @DefaultValue("1") @QueryParam("session-mode")
                                                             int sessionMode,
                                                             @QueryParam("selector")
                                                             String messageSelector,
                                                             @DefaultValue("false") @QueryParam("no-local")
                                                             boolean noLocal,
                                                             @DefaultValue("false") @QueryParam("durable")
                                                             boolean durable,
                                                             @DefaultValue("false") @QueryParam("shared")
                                                             boolean shared,
                                                             @QueryParam("sub-name")
                                                             String subName,
                                                             @DefaultValue("0") @QueryParam("idle-timeout")
                                                             long idleTimeout,
                                                             @QueryParam("user")
                                                             String userName,
                                                             @QueryParam("password")
                                                             String password,
                                                             @Context
                                                             jakarta.ws.rs.core.UriInfo uriInfo)
        Deprecated.
      • createProducer

        @POST
        @Path("/{destName}/create-producer-fp")
        @Produces("text/plain")
        @Consumes("application/x-www-form-urlencoded")
        public jakarta.ws.rs.core.Response createProducer​(@Context
                                                          jakarta.ws.rs.core.HttpHeaders headers,
                                                          @PathParam("destName")
                                                          String destName,
                                                          @QueryParam("client-id")
                                                          String clientID,
                                                          @QueryParam("name")
                                                          String prodName,
                                                          @DefaultValue("1") @QueryParam("session-mode")
                                                          int sessionMode,
                                                          @DefaultValue("2") @QueryParam("persistent")
                                                          int deliveryMode,
                                                          @DefaultValue("0") @QueryParam("delivery-delay")
                                                          long deliveryDelay,
                                                          @QueryParam("correlation-id")
                                                          String correlationID,
                                                          @DefaultValue("4") @QueryParam("priority")
                                                          int priority,
                                                          @DefaultValue("0") @QueryParam("time-to-live")
                                                          long timeToLive,
                                                          @DefaultValue("0") @QueryParam("idle-timeout")
                                                          long idleTimeout,
                                                          @QueryParam("user")
                                                          String userName,
                                                          @QueryParam("password")
                                                          String password,
                                                          @FormParam("user")
                                                          String userName2,
                                                          @FormParam("password")
                                                          String password2,
                                                          @Context
                                                          jakarta.ws.rs.core.UriInfo uriInfo)
        Creates a producer through the JNDI Rest API.
        Parameters:
        headers -
        destName -
        clientID -
        prodName -
        sessionMode -
        deliveryMode -
        deliveryDelay -
        correlationID -
        priority -
        timeToLive -
        idleTimeout -
        userName -
        password -
        uriInfo -
        Returns:
      • createConsumer

        @POST
        @Path("/{destName}/create-consumer-fp")
        @Produces("text/plain")
        @Consumes("application/x-www-form-urlencoded")
        public jakarta.ws.rs.core.Response createConsumer​(@Context
                                                          jakarta.ws.rs.core.HttpHeaders headers,
                                                          @PathParam("destName")
                                                          String destName,
                                                          @QueryParam("client-id")
                                                          String clientID,
                                                          @QueryParam("name")
                                                          String consName,
                                                          @DefaultValue("1") @QueryParam("session-mode")
                                                          int sessionMode,
                                                          @QueryParam("selector")
                                                          String messageSelector,
                                                          @DefaultValue("false") @QueryParam("no-local")
                                                          boolean noLocal,
                                                          @DefaultValue("false") @QueryParam("durable")
                                                          boolean durable,
                                                          @DefaultValue("false") @QueryParam("shared")
                                                          boolean shared,
                                                          @QueryParam("sub-name")
                                                          String subName,
                                                          @DefaultValue("0") @QueryParam("idle-timeout")
                                                          long idleTimeout,
                                                          @QueryParam("user")
                                                          String userName,
                                                          @QueryParam("password")
                                                          String password,
                                                          @FormParam("user")
                                                          String userName2,
                                                          @FormParam("password")
                                                          String password2,
                                                          @Context
                                                          jakarta.ws.rs.core.UriInfo uriInfo)
        Creates a consumer through the JNDI Rest API.
        Parameters:
        headers -
        destName -
        clientID -
        consName -
        sessionMode -
        messageSelector -
        noLocal -
        durable -
        shared -
        subName -
        idleTimeout -
        userName -
        password -
        userName2 -
        password2 -
        uriInfo -
        Returns:
      • closeSessionCtx

        @DELETE
        @Path("/{name}")
        @Produces("text/plain")
        @Consumes("text/plain")
        public jakarta.ws.rs.core.Response closeSessionCtx​(@Context
                                                           jakarta.ws.rs.core.HttpHeaders headers,
                                                           @PathParam("name")
                                                           String ctxName,
                                                           @Context
                                                           jakarta.ws.rs.core.UriInfo uriInfo)