ContentNegotiationManagerFactoryBean
のクラスレベルの注意を参照してください。@DeprecatedSE public class ServletPathExtensionContentNegotiationStrategy extends PathExtensionContentNegotiationStrategy
ServletContext.getMimeType(String)
EE も使用してファイル拡張子を解決する PathExtensionContentNegotiationStrategy
を拡張します。logger
MEDIA_TYPE_ALL_LIST
コンストラクターと説明 |
---|
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, setUseJaf
handleMatch, isIgnoreUnknownExtensions, isUseRegisteredExtensionsOnly, resolveMediaTypeKey, resolveMediaTypes, setIgnoreUnknownExtensions, setUseRegisteredExtensionsOnly
addMapping, getAllFileExtensions, getAllMediaTypes, getMediaTypes, lookupMediaType, resolveFileExtensions
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public 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