Class MetricAppBeanOptional


  • @Path("/")
    @ApplicationScoped
    public class MetricAppBeanOptional
    extends Object
    • Constructor Detail

      • MetricAppBeanOptional

        public MetricAppBeanOptional()
    • Method Detail

      • getSingleStringParam

        @GET
        @Path("/get-single-string-param")
        public String getSingleStringParam​(@QueryParam("qp1")
                                           String v1)
                                    throws Exception
        Throws:
        Exception
      • getSingleIntParam

        @GET
        @Path("/get-single-int-param")
        public String getSingleIntParam​(@QueryParam("qp1")
                                        int v1)
                                 throws Exception
        Throws:
        Exception
      • getSingleDoubleParam

        @GET
        @Path("/get-single-double-param")
        public String getSingleDoubleParam​(@QueryParam("qp1")
                                           double v1)
                                    throws Exception
        Throws:
        Exception
      • getSingleLongParam

        @GET
        @Path("/get-single-long-param")
        public String getSingleLongParam​(@QueryParam("qp1")
                                         long v1)
                                  throws Exception
        Throws:
        Exception
      • getSingleBooleanParam

        @GET
        @Path("/get-single-boolean-param")
        public String getSingleBooleanParam​(@QueryParam("qp1")
                                            boolean v1)
                                     throws Exception
        Throws:
        Exception
      • getContextParams

        @GET
        @Path("/get-context-params")
        public String getContextParams​(@Context
                                       jakarta.ws.rs.core.HttpHeaders httpheaders,
                                       @Context
                                       jakarta.ws.rs.core.Request request,
                                       @Context
                                       jakarta.ws.rs.core.UriInfo uriInfo,
                                       @Context
                                       jakarta.ws.rs.container.ResourceContext resourceContext,
                                       @Context
                                       jakarta.ws.rs.ext.Providers providers,
                                       @Context
                                       jakarta.ws.rs.core.Application application,
                                       @Context
                                       jakarta.ws.rs.core.SecurityContext securityContext,
                                       @Context
                                       jakarta.ws.rs.core.Configuration configuration)
                                throws Exception
        Throws:
        Exception
      • getMultipleParam1

        @GET
        @Path("/get-multiple-param1")
        public String getMultipleParam1​(@QueryParam("qp1")
                                        boolean v1,
                                        @QueryParam("qp2")
                                        int v2,
                                        @QueryParam("qp3")
                                        double v3,
                                        @QueryParam("qp4")
                                        String v4,
                                        @QueryParam("qp5")
                                        long v5)
                                 throws Exception
        Throws:
        Exception
      • getAsync

        @GET
        @Path("/get-async")
        public void getAsync​(@Suspended
                             jakarta.ws.rs.container.AsyncResponse asyncResponse)
                      throws Exception
        Throws:
        Exception
      • postMultipleParam1

        @POST
        @Path("/post-multiple-param1")
        public String postMultipleParam1​(@QueryParam("qp1")
                                         boolean v1,
                                         @QueryParam("qp2")
                                         int v2,
                                         @QueryParam("qp3")
                                         double v3,
                                         @QueryParam("qp4")
                                         String v4,
                                         @QueryParam("qp5")
                                         long v5)
                                  throws Exception
        Throws:
        Exception
      • getMappedArithException

        @GET
        @Path("/get-mapped-arithmetic-exception")
        public String getMappedArithException()
                                       throws Exception
        Throws:
        Exception
      • postMappedArithException

        @POST
        @Path("/post-mapped-arithmetic-exception")
        public String postMappedArithException()
                                        throws Exception
        Throws:
        Exception
      • getUnmappedArithException

        @GET
        @Path("/get-unmapped-exception")
        public String getUnmappedArithException()
                                         throws Exception
        Throws:
        Exception
      • postUnmappedArithException

        @POST
        @Path("/post-unmapped-exception")
        public String postUnmappedArithException()
                                          throws Exception
        Throws:
        Exception