public class BHiveDelegatingMultipartResolver extends Object implements org.springframework.web.multipart.MultipartResolver, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
BHiveDelegatingMultipartResolver()
기본 생성자
|
BHiveDelegatingMultipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
생성자
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
빈 초기화 - 설정값 검사
|
void |
cleanupMultipart(org.springframework.web.multipart.MultipartHttpServletRequest request)
Cleanup any resources used for the multipart handling,
like a storage for the uploaded files.
|
List<String> |
getExcludePatterns()
Multipart 처리에서 제외할 패턴 목록
|
org.springframework.web.multipart.MultipartResolver |
getMultipartResolver()
위임할 원본 Multipart Resolver
|
org.springframework.util.PathMatcher |
getPathMatcher()
제외할 요청 경로 검사기 (기본값: AntPathMatcher)
|
protected boolean |
isExcludeUrlPattern(javax.servlet.http.HttpServletRequest request)
Multipart 처리에서 제외할 요청인지 검사 - true이면 Spring MultipartResolver에서 처리하지 않음.
|
boolean |
isMultipart(javax.servlet.http.HttpServletRequest request)
Determine if the given request contains multipart content.
|
org.springframework.web.multipart.MultipartHttpServletRequest |
resolveMultipart(javax.servlet.http.HttpServletRequest request)
Parse the given HTTP request into multipart files and parameters,
and wrap the request inside a
MultipartHttpServletRequest
object that provides access to file descriptors and makes contained
parameters accessible via the standard ServletRequest methods. |
void |
setExcludePatterns(List<String> excludePatterns)
Multipart 처리에서 제외할 패턴 목록
|
void |
setMultipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
위임할 원본 Multipart Resolver
|
void |
setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
제외할 요청 경로 검사기 (기본값: AntPathMatcher)
|
public BHiveDelegatingMultipartResolver()
public BHiveDelegatingMultipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
multipartResolver - 위임대상 Spring Multipart Resolver 지정public List<String> getExcludePatterns()
public void setExcludePatterns(List<String> excludePatterns)
excludePatterns - exclude pattern list to usepublic org.springframework.util.PathMatcher getPathMatcher()
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
pathMatcher - path matcher to userpublic org.springframework.web.multipart.MultipartResolver getMultipartResolver()
public void setMultipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
multipartResolver - MultipartResolver object to usepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected boolean isExcludeUrlPattern(javax.servlet.http.HttpServletRequest request)
request - 검사대상 요청public boolean isMultipart(javax.servlet.http.HttpServletRequest request)
Will typically check for content type "multipart/form-data", but the actually accepted requests might depend on the capabilities of the resolver implementation.
isMultipart in interface org.springframework.web.multipart.MultipartResolverrequest - the servlet request to be evaluatedpublic org.springframework.web.multipart.MultipartHttpServletRequest resolveMultipart(javax.servlet.http.HttpServletRequest request)
throws org.springframework.web.multipart.MultipartException
MultipartHttpServletRequest
object that provides access to file descriptors and makes contained
parameters accessible via the standard ServletRequest methods.resolveMultipart in interface org.springframework.web.multipart.MultipartResolverrequest - the servlet request to wrap (must be of a multipart content type)org.springframework.web.multipart.MultipartException - if the servlet request is not multipart, or if
implementation-specific problems are encountered (such as exceeding file size limits)MultipartRequest.getFile(java.lang.String),
MultipartRequest.getFileNames(),
MultipartRequest.getFileMap(),
ServletRequest.getParameter(java.lang.String),
ServletRequest.getParameterNames(),
ServletRequest.getParameterMap()public void cleanupMultipart(org.springframework.web.multipart.MultipartHttpServletRequest request)
cleanupMultipart in interface org.springframework.web.multipart.MultipartResolverrequest - the request to cleanup resources forCopyright © 2018. All rights reserved.