Class HttpInputStreamUtil
- java.lang.Object
-
- org.apache.logging.log4j.core.util.internal.HttpInputStreamUtil
-
public final class HttpInputStreamUtil extends java.lang.ObjectUtility method for reading data from an HTTP InputStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpInputStreamUtil.Result
-
Field Summary
Fields Modifier and Type Field Description private static intBUF_SIZEprivate static LoggerLOGGERprivate static intNOT_AUTHORIZEDprivate static intNOT_FOUNDprivate static intNOT_MODIFIEDprivate static intOK
-
Constructor Summary
Constructors Constructor Description HttpInputStreamUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpInputStreamUtil.ResultgetInputStream(LastModifiedSource source, AuthorizationProvider authorizationProvider)static byte[]readStream(java.io.InputStream is)
-
-
-
Field Detail
-
LOGGER
private static final Logger LOGGER
-
NOT_MODIFIED
private static final int NOT_MODIFIED
- See Also:
- Constant Field Values
-
NOT_AUTHORIZED
private static final int NOT_AUTHORIZED
- See Also:
- Constant Field Values
-
NOT_FOUND
private static final int NOT_FOUND
- See Also:
- Constant Field Values
-
OK
private static final int OK
- See Also:
- Constant Field Values
-
BUF_SIZE
private static final int BUF_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInputStream
public static HttpInputStreamUtil.Result getInputStream(LastModifiedSource source, AuthorizationProvider authorizationProvider)
-
readStream
public static byte[] readStream(java.io.InputStream is) throws java.io.IOException- Throws:
java.io.IOException
-
-