org.apache.http.impl.io
Class DefaultHttpRequestWriter
java.lang.Object
   org.apache.http.impl.io.AbstractMessageWriter<HttpRequest>
org.apache.http.impl.io.AbstractMessageWriter<HttpRequest>
       org.apache.http.impl.io.DefaultHttpRequestWriter
org.apache.http.impl.io.DefaultHttpRequestWriter
- All Implemented Interfaces: 
- HttpMessageWriter<HttpRequest>
- public class DefaultHttpRequestWriter 
- extends AbstractMessageWriter<HttpRequest>
HTTP request writer that serializes its output to an instance of SessionOutputBuffer.
- Since:
- 4.3
 
 
 
| Method Summary | 
| protected  void | writeHeadLine(HttpRequest message)Subclasses must override this method to write out the first header line
 based on the
 HttpMessagepassed as a parameter. | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DefaultHttpRequestWriter
public DefaultHttpRequestWriter(SessionOutputBuffer buffer,
                                LineFormatter formatter)
- Creates an instance of DefaultHttpRequestWriter.
 
- Parameters:
- buffer- the session output buffer.
- formatter- the line formatter If- null- BasicLineFormatter.INSTANCEwill be used.
 
DefaultHttpRequestWriter
public DefaultHttpRequestWriter(SessionOutputBuffer buffer)
writeHeadLine
protected void writeHeadLine(HttpRequest message)
                      throws IOException
- Description copied from class: AbstractMessageWriter
- Subclasses must override this method to write out the first header line
 based on the HttpMessagepassed as a parameter.
 
- 
- Specified by:
- writeHeadLinein class- AbstractMessageWriter<HttpRequest>
 
- 
- Parameters:
- message- the message whose first line is to be written out.
- Throws:
- IOException- in case of an I/O error.
 
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.