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, writeInternal
protected 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.ResourceHttpMessageConverter
IOException
org.springframework.http.converter.HttpMessageNotReadableException
protected org.springframework.http.MediaType getDefaultContentType(org.springframework.core.io.Resource resource)
getDefaultContentType
in class org.springframework.http.converter.ResourceHttpMessageConverter
protected 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>
IOException
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.