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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
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:H2MessageConverterConverts given list of HTTP/2 headers to aHttpMessage.- Specified by:
convertin interfaceH2MessageConverter<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:H2MessageConverterConverts givenHttpMessageto a list of HTTP/2 headers.- Specified by:
convertin interfaceH2MessageConverter<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
-