Class ProductServiceResource


  • @Path("/products")
    @Consumes("application/json")
    @Produces("application/json")
    public class ProductServiceResource
    extends java.lang.Object
    • Constructor Detail

      • ProductServiceResource

        public ProductServiceResource()
    • Method Detail

      • getProducts

        @GET
        public void getProducts​(@Suspended
                                javax.ws.rs.container.AsyncResponse pAsyncResponse,
                                @Context
                                javax.servlet.http.HttpServletRequest pRequest)
      • getProduct

        @Path("{id}")
        @GET
        public javax.ws.rs.core.Response getProduct​(@PathParam("id") @DefaultValue("4711")
                                                    java.lang.String pProductID)
        ProductService#getProduct()
      • createProduct

        @POST
        public javax.ws.rs.core.Response createProduct​(Product pProduct)
        ProductService#createProduct()
      • getSortiment

        @Path("sortiment/{id}")
        @GET
        public javax.ws.rs.core.Response getSortiment​(@BeanParam
                                                      Context pContext,
                                                      @Context
                                                      javax.ws.rs.core.HttpHeaders pHeaders)
        ProductService#getSortiment()
      • createChannelCode

        @Path("ChannelCode")
        @POST
        @Consumes("application/xml")
        @Produces("application/xml")
        public javax.ws.rs.core.Response createChannelCode​(java.lang.String pChannelCode)
        ProductService#createChannelCode()
      • deprecatedContext

        @Path("deprecated/context")
        @POST
        public javax.ws.rs.core.Response deprecatedContext​(@BeanParam
                                                           DeprecatedContext pContext)
        ProductService#deprecatedContext()
      • deprecatedBeanParam

        @Path("deprecated/beanParams")
        @POST
        public javax.ws.rs.core.Response deprecatedBeanParam​(@BeanParam
                                                             BeanParameter pBeanParam)
        ProductService#deprecatedBeanParam()
      • deprecatedParams

        @Path("deprecated/params")
        @POST
        @Deprecated
        public javax.ws.rs.core.Response deprecatedParams​(@HeaderParam("param1") @Deprecated
                                                          int pParam1)
        Deprecated.
        ProductService#deprecatedParams()
      • deprecatedBody

        @Path("deprecated/body")
        @POST
        public javax.ws.rs.core.Response deprecatedBody​(@DefaultValue("Hello World!") @Deprecated
                                                        java.lang.String pBody)
        ProductService#deprecatedBody()
      • deprectedComplexRequestBody

        @Path("deprecated/complexBody")
        @POST
        public javax.ws.rs.core.Response deprectedComplexRequestBody​(@Deprecated
                                                                     Product pProduct)
        ProductService#deprectedComplexRequestBody()
      • loadSpecificThings

        @Path("specific/{id}")
        @PATCH
        public javax.ws.rs.core.Response loadSpecificThings​(@BeanParam
                                                            SpecialContext pContext,
                                                            @Context
                                                            javax.ws.rs.core.HttpHeaders pHeaders)
        ProductService#loadSpecificThings()
      • createChannelCodeFromObject

        @Path("ChannelCodeObject")
        @POST
        public javax.ws.rs.core.Response createChannelCodeFromObject​(ChannelCode pChannelCode)
        ProductService#createChannelCodeFromObject()
      • addCurrencies

        @Path("currencies")
        @POST
        public javax.ws.rs.core.Response addCurrencies​(java.util.List<CurrencyCode> pCurrencies)
        ProductService#addCurrencies()
      • isCurrencySupported

        @Path("currencies/valid")
        @POST
        public javax.ws.rs.core.Response isCurrencySupported​(CurrencyCode pCurrency)
        ProductService#isCurrencySupported()
      • testCodeTypeUsage

        @Path("codeTypeUsages")
        @POST
        public javax.ws.rs.core.Response testCodeTypeUsage​(StringCodeType pStringCode)
        ProductService#testCodeTypeUsage()
      • testLocalBeanParamType

        @Path("LocalBeanParam")
        @GET
        public javax.ws.rs.core.Response testLocalBeanParamType​(@BeanParam
                                                                LocalBeanParamType pBeanParam)
        ProductService#testLocalBeanParamType()
      • testExternalBeanParameterType

        @Path("ExternalBeanParam")
        @GET
        public javax.ws.rs.core.Response testExternalBeanParameterType​(@BeanParam
                                                                       ParentBeanParamType pParent)
        ProductService#testExternalBeanParameterType()
      • testChildBeanParameter

        @Path("ChildBeanParam")
        @GET
        public javax.ws.rs.core.Response testChildBeanParameter​(@BeanParam
                                                                ChildBeanParameterType pChild)
        ProductService#testChildBeanParameter()
      • checkIBAN

        @Path("IBAN")
        @POST
        public javax.ws.rs.core.Response checkIBAN​(java.lang.String pIBAN)
        ProductService#checkIBAN()
      • getChannels

        @Path("channels")
        @GET
        public javax.ws.rs.core.Response getChannels​(@QueryParam("channelTypes") @DefaultValue("MOBILE")
                                                     java.util.List<ChannelType> pChannelTypes)
        ProductService#getChannels()
      • getDefaultChannel

        @Path("DefaultChannel")
        @GET
        public javax.ws.rs.core.Response getDefaultChannel​(@QueryParam("channelType") @DefaultValue("COUNTER")
                                                           ChannelType pChannelType)
        ProductService#getDefaultChannel()
      • getSupportedCurrencies

        @Path("currencies/{channelCode}")
        @GET
        public javax.ws.rs.core.Response getSupportedCurrencies​(@PathParam("channelCode")
                                                                java.lang.String pChannelCodeAsBasicType)
        ProductService#getSupportedCurrencies()
      • getSupportedCurrenciesAsync

        @Path("async-currencies/{channelCode}")
        @GET
        public void getSupportedCurrenciesAsync​(@Suspended
                                                javax.ws.rs.container.AsyncResponse pAsyncResponse,
                                                @Context
                                                javax.servlet.http.HttpServletRequest pRequest,
                                                @PathParam("channelCode")
                                                java.lang.String pChannelCodeAsBasicType)
        ProductService#getSupportedCurrenciesAsync()
      • testDateQueryParams

        @Path("test-date-query-params/{path}")
        @GET
        public javax.ws.rs.core.Response testDateQueryParams​(@PathParam("path")
                                                             java.lang.String pPath,
                                                             @QueryParam("startTimestamp")
                                                             java.time.OffsetDateTime pStartTimestamp,
                                                             @QueryParam("startTime")
                                                             java.time.OffsetTime pStartTime,
                                                             @QueryParam("localStartTimestamp")
                                                             java.time.LocalDateTime pLocalStartTimestamp,
                                                             @QueryParam("localStartTime")
                                                             java.time.LocalTime pLocalStartTime,
                                                             @QueryParam("localStartDate")
                                                             java.time.LocalDate pLocalStartDate,
                                                             @QueryParam("calendar")
                                                             java.util.Calendar pCalendar,
                                                             @QueryParam("utilDate")
                                                             java.util.Date pUtilDate,
                                                             @QueryParam("sqlTimestamp")
                                                             java.sql.Timestamp pSQLTimestamp,
                                                             @QueryParam("sqlTime")
                                                             java.sql.Time pSQLTime,
                                                             @QueryParam("sqlDate")
                                                             java.sql.Date pSQLDate)
        ProductService#testDateQueryParams()
      • testDateQueryParamsBean

        @Path("test-date-query-params-beans/{path}")
        @GET
        public javax.ws.rs.core.Response testDateQueryParamsBean​(@PathParam("path")
                                                                 java.lang.String pPath,
                                                                 @BeanParam
                                                                 DateQueryParamsBean pQueryParams)
        ProductService#testDateQueryParamsBean()
      • testOptionalQueryParams

        @Path("test-optional-query-params")
        @GET
        public javax.ws.rs.core.Response testOptionalQueryParams​(@QueryParam("query1") @DefaultValue("Just a default value")
                                                                 java.lang.String query1,
                                                                 @QueryParam("query2")
                                                                 int query2)
        ProductService#testOptionalQueryParams()
      • testSpecialHeaderParams

        @Path("special-header-params")
        @GET
        public javax.ws.rs.core.Response testSpecialHeaderParams​(@HeaderParam("authorization")
                                                                 java.lang.String authorization,
                                                                 @HeaderParam("content-type")
                                                                 java.lang.String pContentType,
                                                                 @HeaderParam("ACCEPT")
                                                                 java.lang.String pAccept)
        ProductService#testSpecialHeaderParams()
      • testTechnicalHeaderBean

        @Path("technicalHeaderBeanParam")
        @GET
        public javax.ws.rs.core.Response testTechnicalHeaderBean​(@BeanParam
                                                                 TechnicalHeaderContext pContext,
                                                                 @Context
                                                                 javax.ws.rs.core.HttpHeaders pHeaders)
        ProductService#testTechnicalHeaderBean()
      • testTechnicalHeaderParam

        @Path("technicalHeaderParam")
        @GET
        public javax.ws.rs.core.Response testTechnicalHeaderParam​(@HeaderParam("Reseller")
                                                                  java.lang.String pReseller)
        ProductService#testTechnicalHeaderParam()
      • testNotInlinedBeanParam

        @Path("testNotInlinedBeanParam")
        @POST
        public javax.ws.rs.core.Response testNotInlinedBeanParam​(@BeanParam
                                                                 NotInlinedBeanParam pInlinedBeanParam)
        ProductService#testNotInlinedBeanParam()
      • testPrimitiveArray

        @Path("testStringArray")
        @POST
        public javax.ws.rs.core.Response testPrimitiveArray​(int[] pIntegerArray)
        ProductService#testPrimitiveArray()
      • testPrimitiveArrayAsQueryParam

        @Path("testPrimitiveArrayAsQueryParam")
        @GET
        public javax.ws.rs.core.Response testPrimitiveArrayAsQueryParam​(@QueryParam("intValues")
                                                                        int[] pIntValues)
        ProductService#testPrimitiveArrayAsQueryParam()
      • testMultivaluedHeader

        @Path("big-decimal-codes-header")
        @GET
        public javax.ws.rs.core.Response testMultivaluedHeader​(@HeaderParam("pCodes")
                                                               java.math.BigDecimal[] pCodesAsBasicType)
        ProductService#testMultivaluedHeader()
      • testMultivaluedQueryParams

        @Path("big-decimal-codes-query")
        @GET
        public javax.ws.rs.core.Response testMultivaluedQueryParams​(@QueryParam("pCodes")
                                                                    java.math.BigDecimal[] pCodesAsBasicType,
                                                                    @QueryParam("pEnums")
                                                                    java.util.List<BooleanLiteralsEnum> pEnums)
        ProductService#testMultivaluedQueryParams()
      • testMulitValuedBeanParams

        @Path("testMulitValuedBeanParams")
        @GET
        public javax.ws.rs.core.Response testMulitValuedBeanParams​(@BeanParam
                                                                   MultiValuedDataType pBeanParam,
                                                                   @QueryParam("pTheEnum")
                                                                   BooleanLiteralsEnum pTheEnum)
        ProductService#testMulitValuedBeanParams()
      • noReturnType

        @Path("no-return-type")
        @POST
        public javax.ws.rs.core.Response noReturnType​(@HeaderParam("The-Header")
                                                      java.lang.String pHeader,
                                                      @BeanParam
                                                      MultiValuedDataType pContext)
        ProductService#noReturnType()
      • deleteSomething

        @Path("delete-something/{id}")
        @DELETE
        public javax.ws.rs.core.Response deleteSomething​(@PathParam("id")
                                                         java.lang.String pID)
        ProductService#deleteSomething()