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() |
boolean |
isDumpComment() |
boolean |
isDumpHeader() |
boolean |
isDumpPayload() |
HTTPOutgoingDumperStreamBased |
setDumpComment(boolean bDumpComment) |
HTTPOutgoingDumperStreamBased |
setDumpHeader(boolean bDumpHeader) |
HTTPOutgoingDumperStreamBased |
setDumpPayload(boolean bDumpPayload) |
void |
start(String sURL,
AS2Message aMsg)
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 final boolean isDumpComment()
@Nonnull public final HTTPOutgoingDumperStreamBased setDumpComment(boolean bDumpComment)
public final boolean isDumpHeader()
@Nonnull public final HTTPOutgoingDumperStreamBased setDumpHeader(boolean bDumpHeader)
public final boolean isDumpPayload()
@Nonnull public final HTTPOutgoingDumperStreamBased setDumpPayload(boolean bDumpPayload)
public void start(@Nonnull String sURL, @Nonnull AS2Message aMsg)
IHTTPOutgoingDumperstart in interface IHTTPOutgoingDumpersURL - The URL to which a connection is established.aMsg - The message to be dumped. Never null.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–2022 Philip Helger. All rights reserved.