public class ServletResponseUtil
extends Object
Constructor and Description |
---|
ServletResponseUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isClientAbortException(IOException ioException) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
byte[] bytes) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
byte[] bytes,
String contentType) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
byte[] bytes,
String contentType,
String contentDispositionType) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
InputStream inputStream) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
InputStream inputStream,
long contentLength,
String contentType) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
InputStream inputStream,
long contentLength,
String contentType,
String contentDispositionType) |
static void |
sendFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
InputStream inputStream,
String contentType) |
static void |
sendFileWithRangeHeader(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
InputStream inputStream,
long contentLength,
String contentType) |
protected static void |
setContentLength(javax.servlet.http.HttpServletResponse httpServletResponse,
long contentLength) |
protected static void |
setHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
String contentType,
String contentDispositionType) |
protected static void |
setHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String fileName,
String contentType,
String contentDispositionType,
Range range) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
BufferCacheServletResponse bufferCacheServletResponse) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
byte[] bytes) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
byte[][] bytesArray) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
byte[] bytes,
int offset,
int contentLength) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
ByteBuffer byteBuffer) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
CharBuffer charBuffer) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
File file) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
InputStream inputStream) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
InputStream inputStream,
long contentLength) |
static void |
write(javax.servlet.http.HttpServletResponse httpServletResponse,
String s) |
public static boolean isClientAbortException(IOException ioException)
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, byte[] bytes) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, byte[] bytes, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, byte[] bytes, String contentType, String contentDispositionType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, InputStream inputStream) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, InputStream inputStream, long contentLength, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, InputStream inputStream, long contentLength, String contentType, String contentDispositionType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, InputStream inputStream, String contentType) throws IOException
IOException
public static void sendFileWithRangeHeader(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, InputStream inputStream, long contentLength, String contentType) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, BufferCacheServletResponse bufferCacheServletResponse) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, byte[] bytes) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, byte[] bytes, int offset, int contentLength) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, byte[][] bytesArray) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, ByteBuffer byteBuffer) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, CharBuffer charBuffer) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, File file) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, InputStream inputStream) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, InputStream inputStream, long contentLength) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse httpServletResponse, String s) throws IOException
IOException
protected static void setContentLength(javax.servlet.http.HttpServletResponse httpServletResponse, long contentLength)
protected static void setHeaders(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, String contentType, String contentDispositionType)
protected static void setHeaders(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String fileName, String contentType, String contentDispositionType, Range range)