Interstage Application Server/Interstage Web Server J2EE ユーザーズガイド |
目次 索引 |
第2部 Servlet/JSP編 | > 第7章 Webアプリケーションの開発 | > 7.5 Webアプリケーション環境定義ファイル(deployment descriptor) | > 7.5.3 Webアプリケーション環境定義ファイル(deployment descriptor)のタグの詳細 |
mimeタイプは、mime-mappingタグで定義します。
mimeタイプは、Servletコンテナがデフォルトの値を定義しています。
本タグを定義することにより、Webアプリケーション独自のmimeタイプが設定できます。
本タグで設定したmimeタイプは、デフォルトのmimeタイプより、優先されます。
また、重複して定義した場合は、あとから指定したmimeタイプが有効となります。
設定したmimeタイプは、javax.servlet.ServletContext.getMimeType()メソッドを使用して取り出します。
------------------------------------------------------------------------------------ <mime-mapping> <extension>ext</extension> <mime-type>mime</mime-type> </mime-mapping> ------------------------------------------------------------------------------------
タグ名 |
説明 |
タグの |
複数の |
---|---|---|---|
extension |
mimeタイプを定義するファイルの拡張子を定義します。 |
× |
× |
mime-type |
mimeタイプを定義します。 |
× |
× |
------------------------------------------------------------------------------------ <mime-mapping> <extension>jpg</extension> <mime-type>image/jpeg</mime-type> </mime-mapping> ------------------------------------------------------------------------------------
extension |
mime-type |
---|---|
abs |
audio/x-mpeg |
ai |
application/postscript |
aif |
audio/x-aiff |
aim |
application/x-aim |
art |
image/x-jg |
asf |
video/x-ms-asf |
au |
audio/basic |
avi |
video/x-msvideo |
avx |
video/x-rad-screenplay |
bcpio |
application/x-bcpio |
bin |
application/octet-stream |
bmp |
image/bmp |
body |
text/html |
cdf |
application/x-netcdf |
cer |
application/x-x509-ca-cert |
class |
application/java |
cpio |
application/x-cpio |
csh |
application/x-csh |
css |
text/css |
dib |
image/bmp |
doc |
application/msword |
dtd |
application/xml-dtd |
dv |
video/x-dv |
dvi |
application/x-dvi |
eps |
application/postscript |
etx |
text/x-setext |
exe |
application/octet-stream |
gif |
image/gif |
gtar |
application/x-gtar |
gz |
application/x-gzip |
hdf |
application/x-hdf |
hqx |
application/mac-binhex40 |
htc |
text/x-component |
htm |
text/html |
ico |
image/x-icon |
ief |
image/ief |
jad |
text/vnd.sun.j2me.app-descriptor |
jar |
application/java-archive |
java |
text/plain |
jnlp |
application/x-java-jnlp-file |
jpe |
image/jpeg |
js |
text/javascript |
jsf |
text/plain |
jspf |
text/plain |
kar |
audio/midi |
latex |
application/x-latex |
m3u |
audio/x-mpegurl |
mac |
image/x-macpaint |
man |
application/x-troff-man |
mathml |
application/mathml+xml |
me |
application/x-troff-me |
mid |
audio/midi |
midi |
audio/midi |
mif |
application/vnd.mif |
mov |
video/quicktime |
movie |
video/x-sgi-movie |
mp1 |
audio/x-mpeg |
mp2 |
audio/mpeg |
mpe |
video/mpeg |
mpv2 |
video/mpeg2 |
ms |
application/x-troff-ms |
nc |
application/x-netcdf |
oda |
application/oda |
odb |
application/vnd.oasis.opendocument.database |
odc |
application/vnd.oasis.opendocument.chart |
odf |
application/vnd.oasis.opendocument.formula |
odg |
application/vnd.oasis.opendocument.graphics |
odi |
application/vnd.oasis.opendocument.image |
odm |
application/vnd.oasis.opendocument.text-master |
odp |
application/vnd.oasis.opendocument.presentation |
ods |
application/vnd.oasis.opendocument.spreadsheet |
odt |
application/vnd.oasis.opendocument.text |
ogg |
application/ogg |
otg |
application/vnd.oasis.opendocument.graphics-template |
oth |
application/vnd.oasis.opendocument.text-web |
otp |
application/vnd.oasis.opendocument.presentation-template |
ots |
application/vnd.oasis.opendocument.spreadsheet-template |
ott |
application/vnd.oasis.opendocument.text-template |
pbm |
image/x-portable-bitmap |
pct |
image/pict |
|
application/pdf |
pgm |
image/x-portable-graymap |
pic |
image/pict |
pls |
audio/x-scpls |
png |
image/png |
pnm |
image/x-portable-anymap |
pnt |
image/x-macpaint |
ppm |
image/x-portable-pixmap |
pps |
application/vnd.ms-powerpoint |
ppt |
application/vnd.ms-powerpoint |
ps |
application/postscript |
psd |
image/x-photoshop |
qt |
video/quicktime |
qti |
image/x-quicktime |
ras |
image/x-cmu-raster |
rdf |
application/rdf+xml |
rgb |
image/x-rgb |
rm |
application/vnd.rn-realmedia |
roff |
application/x-troff |
rtf |
text/rtf |
rtx |
text/richtext |
sh |
application/x-sh |
shar |
application/x-shar |
smf |
audio/x-midi |
sit |
application/x-stuffit |
snd |
audio/basic |
src |
application/x-wais-source |
sv4cpio |
application/x-sv4cpio |
sv4crc |
application/x-sv4crc |
svg |
image/svg+xml |
svgz |
image/svg |
swf |
application/x-shockwave-flash |
t |
application/x-troff |
tar |
application/x-tar |
tcl |
application/x-tcl |
tex |
application/x-tex |
texi |
application/x-texinfo |
tif |
image/tiff |
tr |
application/x-troff |
tsv |
text/tab-separated-values |
txt |
text/plain |
ulw |
audio/basic |
ustar |
application/x-ustar |
vrml |
model/vrml |
vsd |
application/x-visio |
vxml |
application/voicexml+xml |
wav |
audio/x-wav |
wbmp |
image/vnd.wap.wbmp |
wml |
text/vnd.wap.wml |
wmlc |
application/vnd.wap.wmlc |
wmls |
text/vnd.wap.wmlscript |
wmlscriptc |
application/vnd.wap.wmlscriptc |
wrl |
model/vrml |
xbm |
image/x-xbitmap |
xht |
application/xhtml+xml |
xhtml |
application/xhtml+xml |
xls |
application/vnd.ms-excel |
xml |
application/xml |
xpm |
image/x-xpixmap |
xsl |
application/xml |
xslt |
application/xslt+xml |
xul |
application/vnd.mozilla.xul+xml |
xwd |
image/x-xwindowdump |
Z |
application/x-compress |
zip |
application/zip |
目次 索引 |