Class MockMultipartRequest
- java.lang.Object
-
- jetbrains.buildServer.controllers.fakes.FakeHttpServletRequest
-
- jetbrains.buildServer.controllers.MockRequest
-
- jetbrains.buildServer.controllers.MockMultipartRequest
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
,org.springframework.web.multipart.MultipartHttpServletRequest
,org.springframework.web.multipart.MultipartRequest
public class MockMultipartRequest extends MockRequest implements org.springframework.web.multipart.MultipartHttpServletRequest
User: vbedrosova Date: 04.06.2010 Time: 13:01:03
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.MockRequest
contextPath
-
Fields inherited from class jetbrains.buildServer.controllers.fakes.FakeHttpServletRequest
formats
-
-
Constructor Summary
Constructors Constructor Description MockMultipartRequest(Map<String,org.springframework.mock.web.MockMultipartFile> files, String... parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.multipart.MultipartFile
getFile(String name)
Map<String,org.springframework.web.multipart.MultipartFile>
getFileMap()
Iterator<String>
getFileNames()
List<org.springframework.web.multipart.MultipartFile>
getFiles(String name)
org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile>
getMultiFileMap()
String
getMultipartContentType(String paramOrFileName)
org.springframework.http.HttpHeaders
getMultipartHeaders(String paramOrFileName)
org.springframework.http.HttpHeaders
getRequestHeaders()
org.springframework.http.HttpMethod
getRequestMethod()
-
Methods inherited from class jetbrains.buildServer.controllers.MockRequest
createSession, fixCSRF, fromUrlWithQueryString, getSessionMock, invalidateCSRF, setRealBrowserUserAgent
-
Methods inherited from class jetbrains.buildServer.controllers.fakes.FakeHttpServletRequest
addCookie, addParameters, addToPathInfo, authenticate, changeSessionId, clearAttributes, deleteParameter, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAttribute, removeHeader, setAttribute, setCharacterEncoding, setContextPath, setHeader, setHost, setInputStream, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameters, setPathInfo, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRequestedSessionId, setRequestURI, setRequestURI, setRequestURL, setScheme, setSecure, setServerName, setServerPort, setServletContext, setServletPath, setSession, startAsync, startAsync, updateQueryStringFromParameters, upgrade
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.servlet.http.HttpServletRequest
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
-
Methods inherited from interface javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
-
-
-
Method Detail
-
getFiles
public List<org.springframework.web.multipart.MultipartFile> getFiles(String name)
- Specified by:
getFiles
in interfaceorg.springframework.web.multipart.MultipartRequest
-
getMultiFileMap
public org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> getMultiFileMap()
- Specified by:
getMultiFileMap
in interfaceorg.springframework.web.multipart.MultipartRequest
-
getFileNames
public Iterator<String> getFileNames()
- Specified by:
getFileNames
in interfaceorg.springframework.web.multipart.MultipartRequest
-
getFile
public org.springframework.web.multipart.MultipartFile getFile(String name)
- Specified by:
getFile
in interfaceorg.springframework.web.multipart.MultipartRequest
-
getFileMap
public Map<String,org.springframework.web.multipart.MultipartFile> getFileMap()
- Specified by:
getFileMap
in interfaceorg.springframework.web.multipart.MultipartRequest
-
getMultipartContentType
public String getMultipartContentType(String paramOrFileName)
- Specified by:
getMultipartContentType
in interfaceorg.springframework.web.multipart.MultipartRequest
-
getRequestMethod
public org.springframework.http.HttpMethod getRequestMethod()
- Specified by:
getRequestMethod
in interfaceorg.springframework.web.multipart.MultipartHttpServletRequest
-
getRequestHeaders
public org.springframework.http.HttpHeaders getRequestHeaders()
- Specified by:
getRequestHeaders
in interfaceorg.springframework.web.multipart.MultipartHttpServletRequest
-
getMultipartHeaders
public org.springframework.http.HttpHeaders getMultipartHeaders(String paramOrFileName)
- Specified by:
getMultipartHeaders
in interfaceorg.springframework.web.multipart.MultipartHttpServletRequest
-
-