Class HttpHeadersContextProvider

  • All Implemented Interfaces:
    javax.ws.rs.core.HttpHeaders

    public class HttpHeadersContextProvider
    extends Object
    implements javax.ws.rs.core.HttpHeaders
    Used to inject HttpHeaders to the client providers (filters, etc). based on ResteasyHttpHeaders
    • Constructor Detail

      • HttpHeadersContextProvider

        public HttpHeadersContextProvider​(javax.ws.rs.client.ClientRequestContext context)
    • Method Detail

      • getRequestHeaders

        public javax.ws.rs.core.MultivaluedMap<String,​String> getRequestHeaders()
        Specified by:
        getRequestHeaders in interface javax.ws.rs.core.HttpHeaders
      • getRequestHeader

        public List<String> getRequestHeader​(String name)
        Specified by:
        getRequestHeader in interface javax.ws.rs.core.HttpHeaders
      • getCookies

        public Map<String,​javax.ws.rs.core.Cookie> getCookies()
        Specified by:
        getCookies in interface javax.ws.rs.core.HttpHeaders
      • getDate

        public Date getDate()
        Specified by:
        getDate in interface javax.ws.rs.core.HttpHeaders
      • getHeaderString

        public String getHeaderString​(String name)
        Specified by:
        getHeaderString in interface javax.ws.rs.core.HttpHeaders
      • getLanguage

        public Locale getLanguage()
        Specified by:
        getLanguage in interface javax.ws.rs.core.HttpHeaders
      • getLength

        public int getLength()
        Specified by:
        getLength in interface javax.ws.rs.core.HttpHeaders
      • getMediaType

        public javax.ws.rs.core.MediaType getMediaType()
        Specified by:
        getMediaType in interface javax.ws.rs.core.HttpHeaders
      • getAcceptableMediaTypes

        public List<javax.ws.rs.core.MediaType> getAcceptableMediaTypes()
        Specified by:
        getAcceptableMediaTypes in interface javax.ws.rs.core.HttpHeaders
      • getAcceptableLanguages

        public List<Locale> getAcceptableLanguages()
        Specified by:
        getAcceptableLanguages in interface javax.ws.rs.core.HttpHeaders