Package net.shibboleth.sp.messaging
Class RemotedHttpServletResponse.BodyOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
net.shibboleth.sp.messaging.RemotedHttpServletResponse.BodyOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- RemotedHttpServletResponse
A pseudo
ServletOutputStream to catch output.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayList<RemotedHttpServletResponse.ByteArrayWrapper>Internal buffers.The currently filling buffer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()booleanisReady()private voidreset()Clear all data written.voidsetWriteListener(WriteListener writeListener) voidwrite(int b) Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, writeMethods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Field Details
-
bufferList
@Nonnull @NonnullElements private final ArrayList<RemotedHttpServletResponse.ByteArrayWrapper> bufferListInternal buffers. -
currentBuffer
The currently filling buffer.
-
-
Constructor Details
-
BodyOutputStream
public BodyOutputStream()Constructor.
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReadyin classServletOutputStream
-
setWriteListener
- Specified by:
setWriteListenerin classServletOutputStream
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classServletOutputStream- Throws:
IOException
-
reset
private void reset()Clear all data written.
-