public class ServletPathExtensionContentNegotiationStrategy extends PathExtensionContentNegotiationStrategy
ServletContext.getMimeType(String)EE も使用してファイル拡張子を解決する PathExtensionContentNegotiationStrategy を拡張します。logger| コンストラクターと説明 |
|---|
ServletPathExtensionContentNegotiationStrategy(ServletContextEE context) まず、マッピングなしでインスタンスを作成します。 |
ServletPathExtensionContentNegotiationStrategy(ServletContextEE servletContext, MapSE<StringSE, MediaType> mediaTypes) 指定された extension-to-MediaType ルックアップでインスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
MediaType | getMediaTypeForResource(Resource resource) 基本クラス PathExtensionContentNegotiationStrategy.getMediaTypeForResource(org.springframework.core.io.Resource) を拡張し、ServletContext を検索することもできます。 |
protected MediaType | handleNoMatch(NativeWebRequest webRequest, StringSE extension)ServletContext.getMimeType(String)EE を介してファイル拡張子を解決し、潜在的な MediaTypeFactory ルックアップの基本クラスに委譲します。 |
getMediaTypeKey, setUrlPathHelper, setUseJafhandleMatch, isIgnoreUnknownExtensions, isUseRegisteredExtensionsOnly, resolveMediaTypeKey, resolveMediaTypes, setIgnoreUnknownExtensions, setUseRegisteredExtensionsOnlyaddMapping, getAllFileExtensions, getAllMediaTypes, getMediaTypes, lookupMediaType, resolveFileExtensionscloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ServletPathExtensionContentNegotiationStrategy(ServletContextEE context)
ServletContext.getMimeType(String)EE または MediaTypeFactory を介して解決されるときに後で追加される場合があります。public ServletPathExtensionContentNegotiationStrategy(ServletContextEE servletContext, @Nullable MapSE<StringSE,MediaType> mediaTypes)
@Nullable protected MediaType handleNoMatch(NativeWebRequest webRequest, StringSE extension) throws HttpMediaTypeNotAcceptableException
ServletContext.getMimeType(String)EE を介してファイル拡張子を解決し、潜在的な MediaTypeFactory ルックアップの基本クラスに委譲します。public MediaType getMediaTypeForResource(Resource resource)
PathExtensionContentNegotiationStrategy.getMediaTypeForResource(org.springframework.core.io.Resource) を拡張し、ServletContext を検索することもできます。PathExtensionContentNegotiationStrategy の getMediaTypeForResource resource - 検索するリソース null