Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-162

The client should send appropriate accept header when no accept specified

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • Client
    • None

    Description

      Wink client hold all the providers that can be used to de serialize the response, therefore if no accept is set by the user, wink can do the fallowing to define the accept header (pseudo code ):

      foreach (MessageBodyReader){
        if(MessageBodyReader generics fits requested class){
          foreach (MediaType in provider's Consume annotation){
            if(provider.isReadable(requested class, media type)	
              add MediaType to accept header
            }
          }
      }
      

      Attachments

        1. WINK-162.patch
          26 kB
          Bryant Luk

        Activity

          People

            bluk Bryant Luk
            elib Eli Baram
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: