Package io.jmix.rest
Class RestProperties
java.lang.Object
io.jmix.rest.RestProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionFile extensions that can be opened for viewing in a browser by replying with 'Content-Disposition=inline' header. -
Constructor Summary
ConstructorsConstructorDescriptionRestProperties
(String basePath, String entitiesPath, String docsPath, String metadataPath, String filesPath, String messagesPath, String permissionsPath, String queriesPath, String servicesPath, String userInfoPath, String userSessionPath, String capabilitiesPath, boolean optimisticLockingEnabled, boolean responseFetchPlanEnabled, int defaultMaxFetchSize, Set<String> inlineEnabledFileExtensions, Map<String, Integer> entityMaxFetchSize, boolean inlineFetchPlanEnabled, String servicesConfig, String queriesConfig) -
Method Summary
Modifier and TypeMethodDescriptionint
getEntityMaxFetchSize
(String entityName) boolean
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("/rest") String basePath, @DefaultValue("/entities") String entitiesPath, @DefaultValue("/docs") String docsPath, @DefaultValue("/metadata") String metadataPath, @DefaultValue("/files") String filesPath, @DefaultValue("/messages") String messagesPath, @DefaultValue("/permissions") String permissionsPath, @DefaultValue("/queries") String queriesPath, @DefaultValue("/services") String servicesPath, @DefaultValue("/userInfo") String userInfoPath, @DefaultValue("/user-session") String userSessionPath, @DefaultValue("/capabilities") String capabilitiesPath, @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, @DefaultValue("true") boolean inlineFetchPlanEnabled, String servicesConfig, String queriesConfig)
-
-
Method Details
-
getBasePath
- See Also:
-
basePath
-
getEntitiesPath
- See Also:
-
entitiesPath
-
getDocsPath
- See Also:
-
docsPath
-
getMetadataPath
- See Also:
-
metadataPath
-
getFilesPath
- See Also:
-
filesPath
-
getMessagesPath
- See Also:
-
messagesPath
-
getPermissionsPath
- See Also:
-
permissionsPath
-
getQueriesPath
- See Also:
-
queriesPath
-
getServicesPath
- See Also:
-
servicesPath
-
getUserInfoPath
- See Also:
-
userInfoPath
-
getUserSessionPath
- See Also:
-
userSessionPath
-
getCapabilitiesPath
- See Also:
-
capabilitiesPath
-
isOptimisticLockingEnabled
public boolean isOptimisticLockingEnabled()- See Also:
-
optimisticLockingEnabled
-
isResponseFetchPlanEnabled
public boolean isResponseFetchPlanEnabled()- See Also:
-
responseFetchPlanEnabled
-
getInlineEnabledFileExtensions
- See Also:
-
getEntityMaxFetchSize
-
isInlineFetchPlanEnabled
public boolean isInlineFetchPlanEnabled()- See Also:
-
inlineFetchPlanEnabled
-
getServicesConfig
- See Also:
-
servicesPath
-
getQueriesConfig
- See Also:
-
queriesPath
-