public static class RestPayloadImpl.Outbound extends PayloadImpl.Outbound
Constructor and Description |
---|
Outbound(boolean client2Server) |
Modifier and Type | Method and Description |
---|---|
String |
getComplexContentType()
Returns the Content-Type which reflects that multiple Parts will be
in the Payload.
|
protected void |
writePartsTo(OutputStream os)
Writes the Parts in this Outbound Payload to the specified output
stream; concrete implementations will implement this abstract method.
|
void |
writeTo(OutputStream os)
Writes the Payload to the specified output stream.
|
addPart, addPart, addPart, attachFile, attachFile, attachFile, attachFile, getContentType, getHeaderName, getParts, isDirty, newInstance, parts, requestFileRemoval, requestFileRemoval, requestFileReplacement, resetDirty, size
public String getComplexContentType()
PayloadImpl.Outbound
This content type might vary among different implementations of Payload.
getComplexContentType
in class PayloadImpl.Outbound
protected void writePartsTo(OutputStream os) throws IOException
PayloadImpl.Outbound
writePartsTo
in class PayloadImpl.Outbound
os
- the OutputStream to which the Parts should be writtenIOException
public void writeTo(OutputStream os) throws IOException
PayloadImpl.Outbound
writeTo
in interface Payload.Outbound
writeTo
in class PayloadImpl.Outbound
os
- the OutputStream to which the Payload should be writtenIOException
Copyright © 2020. All rights reserved.