public class WxMediaResourceMessageConverter
extends org.springframework.http.converter.ResourceHttpMessageConverter
implements org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
WxMediaResourceMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultHeaders(org.springframework.http.HttpHeaders headers,
org.springframework.core.io.Resource t,
org.springframework.http.MediaType contentType) |
protected org.springframework.http.MediaType |
getDefaultContentType(org.springframework.core.io.Resource resource) |
protected org.springframework.core.io.Resource |
readInternal(Class<? extends org.springframework.core.io.Resource> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
getContentLength, supports, writeContent, writeInternalprotected org.springframework.core.io.Resource readInternal(Class<? extends org.springframework.core.io.Resource> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
readInternal in class org.springframework.http.converter.ResourceHttpMessageConverterIOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionprotected org.springframework.http.MediaType getDefaultContentType(org.springframework.core.io.Resource resource)
getDefaultContentType in class org.springframework.http.converter.ResourceHttpMessageConverterprotected void addDefaultHeaders(org.springframework.http.HttpHeaders headers,
org.springframework.core.io.Resource t,
org.springframework.http.MediaType contentType)
throws IOException
addDefaultHeaders in class org.springframework.http.converter.AbstractHttpMessageConverter<org.springframework.core.io.Resource>IOExceptionpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwareCopyright © 2018 Guangshan Technology, Inc.. All rights reserved.