org.apache.hc.core5.http.impl.io

## Class DefaultHttpRequestWriterFactory

- java.lang.Object
- - org.apache.hc.core5.http.impl.io.DefaultHttpRequestWriterFactory

- All Implemented Interfaces:
    HttpMessageWriterFactory<ClassicHttpRequest>

      @Contract(threading=IMMUTABLE_CONDITIONAL)
      public class DefaultHttpRequestWriterFactory
      extends Object
      implements HttpMessageWriterFactory<ClassicHttpRequest>

  Default factory for request message writers.
  Since:
    4.3

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static DefaultHttpRequestWriterFactory` | `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultHttpRequestWriterFactory()`
    `DefaultHttpRequestWriterFactory(LineFormatter lineFormatter)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `HttpMessageWriter<ClassicHttpRequest>` | `create()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final DefaultHttpRequestWriterFactory INSTANCE

  - ### Constructor Detail

    - #### DefaultHttpRequestWriterFactory

          public DefaultHttpRequestWriterFactory(LineFormatter lineFormatter)

    - #### DefaultHttpRequestWriterFactory

          public DefaultHttpRequestWriterFactory()

  - ### Method Detail

    - #### create

          public HttpMessageWriter<ClassicHttpRequest> create()

      Specified by:
        `create` in interface `HttpMessageWriterFactory<ClassicHttpRequest>`

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.