Package org.springframework.ws.transport
Class TransportOutputStream
java.lang.Object
java.io.OutputStream
org.springframework.ws.transport.TransportOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A
TransportOutputStream
is an output stream with MIME input headers. It is used to write
WebServiceMessages
to a transport.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
TransportOutputStream
protected TransportOutputStream()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
addHeader
Adds a header with the given name and value. This method can be called multiple times, to allow for headers with multiple values.- Parameters:
name
- the name of the headervalue
- the value of the header- Throws:
IOException
-
createOutputStream
Returns the output stream to write to.- Throws:
IOException
-