Class DefaultH2RequestConverter

java.lang.Object
org.apache.hc.core5.http2.impl.DefaultH2RequestConverter
All Implemented Interfaces:
H2MessageConverter<org.apache.hc.core5.http.HttpRequest>

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

  • Constructor Details

    • DefaultH2RequestConverter

      public DefaultH2RequestConverter()
  • Method Details

    • convert

      public org.apache.hc.core5.http.HttpRequest convert(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 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