Search in sources :

Example 6 with MultipartRequestWrapper

use of org.apache.struts.upload.MultipartRequestWrapper in project xwiki-platform by xwiki.

the class XWikiServletRequest method getRequestURL.

// HttpServletRequest
@Override
public StringBuffer getRequestURL() {
    HttpServletRequest request = getHttpServletRequest();
    StringBuffer requestURL = request.getRequestURL();
    if ((requestURL == null) && (request instanceof MultipartRequestWrapper)) {
        requestURL = ((HttpServletRequest) ((MultipartRequestWrapper) request).getRequest()).getRequestURL();
    }
    return requestURL;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) MultipartRequestWrapper(org.apache.struts.upload.MultipartRequestWrapper)

Aggregations

MultipartRequestWrapper (org.apache.struts.upload.MultipartRequestWrapper)6 Enumeration (java.util.Enumeration)4 HashMap (java.util.HashMap)4 Hashtable (java.util.Hashtable)4 Map (java.util.Map)4 XWikiException (com.xpn.xwiki.XWikiException)1 FileUploadPlugin (com.xpn.xwiki.plugin.fileupload.FileUploadPlugin)1 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 LinkedHashMap (java.util.LinkedHashMap)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 FileItem (org.apache.commons.fileupload.FileItem)1 MessageMap (org.kuali.kfs.krad.util.MessageMap)1 ComponentLookupException (org.xwiki.component.manager.ComponentLookupException)1