/** * Indicate whether to use the Java Activation Framework as a fallback option * to map from file extensions to media types. * @deprecated as of 5.0, in favor of {@link #setUseRegisteredExtensionsOnly(boolean)}. */ @Deprecated public void setUseJaf(boolean useJaf) { setUseRegisteredExtensionsOnly(!useJaf); }
/** * Indicate whether to use the Java Activation Framework as a fallback option * to map from file extensions to media types. * @deprecated as of 5.0, in favor of {@link #setUseRegisteredExtensionsOnly(boolean)}. */ @Deprecated public void setUseJaf(boolean useJaf) { setUseRegisteredExtensionsOnly(!useJaf); }
/** * Create an instance with the given map of file extensions and media types. */ public PathExtensionContentNegotiationStrategy(@Nullable Map<String, MediaType> mediaTypes) { super(mediaTypes); setUseRegisteredExtensionsOnly(false); setIgnoreUnknownExtensions(true); this.urlPathHelper.setUrlDecode(false); }
/** * Create an instance with the given map of file extensions and media types. */ public PathExtensionContentNegotiationStrategy(@Nullable Map<String, MediaType> mediaTypes) { super(mediaTypes); setUseRegisteredExtensionsOnly(false); setIgnoreUnknownExtensions(true); this.urlPathHelper.setUrlDecode(false); }
strategy.setUseRegisteredExtensionsOnly(this.useRegisteredExtensionsOnly);
strategy.setUseRegisteredExtensionsOnly(this.useRegisteredExtensionsOnly);
/** * @deprecated as of 5.0, in favor of {@link #setUseRegisteredExtensionsOnly(boolean)}. */ @Deprecated public void setUseJaf(boolean useJaf) { setUseRegisteredExtensionsOnly(!useJaf); }
/** * Indicate whether to use the Java Activation Framework as a fallback option * to map from file extensions to media types. * @deprecated as of 5.0, in favor of {@link #setUseRegisteredExtensionsOnly(boolean)}. */ @Deprecated public void setUseJaf(boolean useJaf) { setUseRegisteredExtensionsOnly(!useJaf); }
/** * Create an instance with the given map of file extensions and media types. */ public PathExtensionContentNegotiationStrategy(@Nullable Map<String, MediaType> mediaTypes) { super(mediaTypes); setUseRegisteredExtensionsOnly(false); setIgnoreUnknownExtensions(true); this.urlPathHelper.setUrlDecode(false); }
/** * Create an instance with the given map of file extensions and media types. */ public PathExtensionContentNegotiationStrategy(@Nullable Map<String, MediaType> mediaTypes) { super(mediaTypes); setUseRegisteredExtensionsOnly(false); setIgnoreUnknownExtensions(true); this.urlPathHelper.setUrlDecode(false); }
strategy.setUseRegisteredExtensionsOnly(this.useRegisteredExtensionsOnly);
strategy.setUseRegisteredExtensionsOnly(this.useRegisteredExtensionsOnly);