public class MediaResponseUtil extends Object
修飾子 | コンストラクタと説明 |
---|---|
protected |
MediaResponseUtil() |
修飾子とタイプ | メソッドと説明 |
---|---|
static boolean |
download(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
InputStream in,
String fileName,
int length,
String contentType)
|
static boolean |
download(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
InputStream in,
String fileName,
long length,
String contentType)
InputStreamのデータをブラウザに送信します。
|
protected static String |
getBaseName(String filePath) |
static String |
getMimeType(jp.co.intra_mart.foundation.ui.tags.picture.UIPictureIdentifier identifier,
String filePath,
InputStream in,
Map<String,String> availableMimeTypes)
UIPictureIdentifierに指定されたコンテントタイプを返します。
|
public static String getMimeType(jp.co.intra_mart.foundation.ui.tags.picture.UIPictureIdentifier identifier, String filePath, InputStream in, Map<String,String> availableMimeTypes)
identifier
- UIPictureIdentifierfilePath
- ファイルのパスin
- ファイルの内容を示すInputStreamavailableMimeTypes
- 利用可能なMimeType@Deprecated public static boolean download(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InputStream in, String fileName, int length, String contentType) throws IOException
download(HttpServletRequest, HttpServletResponse, InputStream, String, long, String)
を利用してください。request
- リクエストresponse
- レスポンスin
- 送信するデータを表すInputStreamfileName
- ファイル名。エンコードされた状態でContent-Dispositionの値として送信されます。length
- 送信するデータのバイト長。Content-Lengthの値として送信されます。contentType
- 送信するデータのコンテントタイプ。Content-Typeの値として送信されます。IOException
public static boolean download(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InputStream in, String fileName, long length, String contentType) throws IOException
request
- リクエストresponse
- レスポンスin
- 送信するデータを表すInputStreamfileName
- ファイル名。エンコードされた状態でContent-Dispositionの値として送信されます。length
- 送信するデータのバイト長。Content-Lengthの値として送信されます。contentType
- 送信するデータのコンテントタイプ。Content-Typeの値として送信されます。IOException
Copyright © 2012 NTT DATA INTRAMART CORPORATION