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:
Closeable, AutoCloseable
- Enclosing class:
InboundMessageContext
Input stream and its state. State is represented by the
Type enum and
is used to control the execution of interceptors.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) voidclose(boolean force) (package private) boolean(package private) boolean(package private) voidsetContent(InputStream content, boolean buffered) Methods inherited from class EntityInputStream
available, create, ensureNotClosed, getWrappedStream, isClosed, isEmpty, mark, markSupported, read, read, read, reset, setWrappedStream, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
buffered
private boolean buffered
-
-
Constructor Details
-
EntityContent
EntityContent()
-
-
Method Details
-
setContent
-
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 interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classEntityInputStream
-
close
void close(boolean force)
-