public class HTTPOutgoingDumperStreamBased extends Object implements IHTTPOutgoingDumper
OutputStream for operations.| Constructor and Description |
|---|
HTTPOutgoingDumperStreamBased(OutputStream aOS) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the dumper.
|
void |
dumpHeader(String sName,
String sValue)
Get notified on a single outgoing HTTP headers.
|
void |
dumpPayload(byte[] aBytes,
int nOfs,
int nLen)
Dump a single payload byte.
|
void |
dumpPayload(int nByte)
Dump a single payload byte.
|
void |
finishedHeaders()
Called after all headers were emitted.
|
void |
finishedPayload()
Called after the payload was emitted.
|
protected OutputStream |
getWrappedOS() |
void |
start(String sURL)
Called when a new outgoing connection is initiated.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDumpOSpublic HTTPOutgoingDumperStreamBased(@Nonnull @WillCloseWhenClosed OutputStream aOS)
aOS - The output stream to dump to. May not be null.@Nonnull protected final OutputStream getWrappedOS()
public void start(@Nonnull String sURL)
IHTTPOutgoingDumperstart in interface IHTTPOutgoingDumpersURL - The URL to which a connection is established.public void dumpHeader(@Nonnull String sName, @Nonnull String sValue)
IHTTPOutgoingDumperdumpHeader in interface IHTTPOutgoingDumpersName - HTTP header name. Never null.sValue - HTTP header value. Never null.public void finishedHeaders()
IHTTPOutgoingDumperfinishedHeaders in interface IHTTPOutgoingDumperpublic void dumpPayload(int nByte)
IHTTPOutgoingDumperdumpPayload in interface IHTTPOutgoingDumpernByte - Current bytepublic void dumpPayload(@Nonnull byte[] aBytes, @Nonnegative int nOfs, @Nonnegative int nLen)
IHTTPOutgoingDumperdumpPayload in interface IHTTPOutgoingDumperaBytes - bytesnOfs - Offset into the arraynLen - Number of bytes to writepublic void finishedPayload()
IHTTPOutgoingDumperfinishedPayload in interface IHTTPOutgoingDumperpublic void close()
IHTTPOutgoingDumperclose in interface IHTTPOutgoingDumperclose in interface AutoCloseableCopyright © 2013–2019 Philip Helger. All rights reserved.