Class StrutsHelperImpl
java.lang.Object
com.atlassian.confluence.impl.struts.StrutsHelperImpl
- All Implemented Interfaces:
StrutsHelper
- Since:
- 9.4
-
Constructor Summary
ConstructorsConstructorDescriptionStrutsHelperImpl
(I18NBeanFactory i18NBeanFactory, org.apache.struts2.dispatcher.Dispatcher dispatcher) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.struts.multipart.UploadedFile
getUploadedFile
(jakarta.servlet.http.HttpServletRequest request, String fileParameterName) List
<com.atlassian.struts.multipart.UploadedFile> getUploadedFiles
(jakarta.servlet.http.HttpServletRequest request, boolean ignoreMissingFiles) localizeStrutsMessages
(Collection<org.apache.struts2.dispatcher.LocalizedMessage> msgErrors) Localizes StrutsLocalizedMessage
s according to any custom Confluence rules, followed by the default Struts localization.com.atlassian.struts.multipart.AtlassianJakartaMultiPartRequest
unwrapMultiPartRequest
(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.struts.StrutsHelper
getUploadedFiles
-
Constructor Details
-
StrutsHelperImpl
public StrutsHelperImpl(@Qualifier("userI18NBeanFactory") I18NBeanFactory i18NBeanFactory, org.apache.struts2.dispatcher.Dispatcher dispatcher)
-
-
Method Details
-
unwrapMultiPartRequest
public com.atlassian.struts.multipart.AtlassianJakartaMultiPartRequest unwrapMultiPartRequest(jakarta.servlet.http.HttpServletRequest request) - Specified by:
unwrapMultiPartRequest
in interfaceStrutsHelper
-
getUploadedFile
public com.atlassian.struts.multipart.UploadedFile getUploadedFile(jakarta.servlet.http.HttpServletRequest request, String fileParameterName) throws com.atlassian.struts.multipart.FileUploadException - Specified by:
getUploadedFile
in interfaceStrutsHelper
- Throws:
com.atlassian.struts.multipart.FileUploadException
-
getUploadedFiles
public List<com.atlassian.struts.multipart.UploadedFile> getUploadedFiles(jakarta.servlet.http.HttpServletRequest request, boolean ignoreMissingFiles) throws com.atlassian.struts.multipart.FileUploadException - Specified by:
getUploadedFiles
in interfaceStrutsHelper
- Throws:
com.atlassian.struts.multipart.FileUploadException
-
localizeStrutsMessages
public List<String> localizeStrutsMessages(Collection<org.apache.struts2.dispatcher.LocalizedMessage> msgErrors) Localizes StrutsLocalizedMessage
s according to any custom Confluence rules, followed by the default Struts localization.- Specified by:
localizeStrutsMessages
in interfaceStrutsHelper
-