Class DefaultH2RequestConverter

  • All Implemented Interfaces:
    H2MessageConverter<org.apache.hc.core5.http.HttpRequest>

    public final class DefaultH2RequestConverter
    extends java.lang.Object
    implements H2MessageConverter<org.apache.hc.core5.http.HttpRequest>
    HTTP/2 request converter.
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hc.core5.http.HttpRequest convert​(java.util.List<org.apache.hc.core5.http.Header> headers)
      Converts given list of HTTP/2 headers to a HttpMessage.
      java.util.List<org.apache.hc.core5.http.Header> convert​(org.apache.hc.core5.http.HttpRequest message)
      Converts given HttpMessage to a list of HTTP/2 headers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultH2RequestConverter

        public DefaultH2RequestConverter()
    • Method Detail

      • convert

        public org.apache.hc.core5.http.HttpRequest convert​(java.util.List<org.apache.hc.core5.http.Header> headers)
                                                     throws org.apache.hc.core5.http.HttpException
        Description copied from interface: H2MessageConverter
        Converts given list of HTTP/2 headers to a HttpMessage.
        Specified by:
        convert in interface H2MessageConverter<org.apache.hc.core5.http.HttpRequest>
        Parameters:
        headers - list of HTTP/2 headers
        Returns:
        HTTP message
        Throws:
        org.apache.hc.core5.http.HttpException - in case of HTTP protocol violation
      • convert

        public java.util.List<org.apache.hc.core5.http.Header> convert​(org.apache.hc.core5.http.HttpRequest message)
                                                                throws org.apache.hc.core5.http.HttpException
        Description copied from interface: H2MessageConverter
        Converts given HttpMessage to a list of HTTP/2 headers.
        Specified by:
        convert in interface H2MessageConverter<org.apache.hc.core5.http.HttpRequest>
        Parameters:
        message - HTTP message
        Returns:
        list of HTTP/2 headers
        Throws:
        org.apache.hc.core5.http.HttpException - in case of HTTP protocol violation