Package io.jmix.rest
Class RestProperties
java.lang.Object
io.jmix.rest.RestProperties
@ConfigurationProperties(prefix="jmix.rest")
@ConstructorBinding
public class RestProperties
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionFile extensions that can be opened for viewing in a browser by replying with 'Content-Disposition=inline' header. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Deprecated.int
getEntityMaxFetchSize
(String entityName) boolean
boolean
-
Field Details
-
inlineEnabledFileExtensions
File extensions that can be opened for viewing in a browser by replying with 'Content-Disposition=inline' header.
-
-
Constructor Details
-
RestProperties
public RestProperties(@DefaultValue("*") String[] allowedOrigins, @DefaultValue("false") boolean optimisticLockingEnabled, @DefaultValue("true") boolean responseFetchPlanEnabled, @DefaultValue("10000") int defaultMaxFetchSize, @DefaultValue({"jpg","png","jpeg","pdf"}) Set<String> inlineEnabledFileExtensions, @Nullable Map<String, Integer> entityMaxFetchSize)
-
-
Method Details
-
isOptimisticLockingEnabled
public boolean isOptimisticLockingEnabled()- See Also:
-
optimisticLockingEnabled
-
isResponseFetchPlanEnabled
public boolean isResponseFetchPlanEnabled()- See Also:
-
responseFetchPlanEnabled
-
getAllowedOrigins
Deprecated.- See Also:
-
allowedOrigins
-
getInlineEnabledFileExtensions
- See Also:
-
getEntityMaxFetchSize
-
CorsProperties.getAllowedOrigins()