Class InboundMessageContext.EntityContent
- java.lang.Object
-
- java.io.InputStream
-
- org.glassfish.jersey.message.internal.EntityInputStream
-
- org.glassfish.jersey.message.internal.InboundMessageContext.EntityContent
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- InboundMessageContext
private static class InboundMessageContext.EntityContent extends EntityInputStream
Input stream and its state. State is represented by theType enumand is used to control the execution of interceptors.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbuffered
-
Constructor Summary
Constructors Constructor Description EntityContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()(package private) voidclose(boolean force)(package private) booleanhasContent()(package private) booleanisBuffered()(package private) voidsetContent(java.io.InputStream content, boolean buffered)-
Methods inherited from class org.glassfish.jersey.message.internal.EntityInputStream
available, create, ensureNotClosed, getWrappedStream, isClosed, isEmpty, mark, markSupported, read, read, read, reset, setWrappedStream, skip
-
-
-
-
Method Detail
-
setContent
void setContent(java.io.InputStream content, boolean buffered)
-
hasContent
boolean hasContent()
-
isBuffered
boolean isBuffered()
-
close
public void close()
Description copied from class:EntityInputStreamThe method is customized to not throw an
IOExceptionif the close operation fails. Instead, a warning message is logged.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classEntityInputStream
-
close
void close(boolean force)
-
-