public abstract class AttachHttpMessageConverter
extends org.springframework.http.converter.AbstractGenericHttpMessageConverter<java.lang.Object>
JxlsHttpMessageConverter
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
allowIgnorePagination |
protected boolean |
allowNameParam |
protected boolean |
allowResolverPath |
protected java.lang.String[] |
extNames |
protected java.lang.String |
ignorePaginationKey |
protected org.slf4j.Logger |
logger |
protected java.lang.String |
nameParamKey |
protected java.lang.String |
resolverPath |
protected java.lang.String |
resolverPathKey |
protected java.lang.String |
templateBasePath |
protected java.lang.String |
templatePathKey |
| 构造器和说明 |
|---|
AttachHttpMessageConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.Object |
getDataFromResult(java.lang.Object result,
javax.servlet.http.HttpServletRequest request)
从结果对象获取数据对象
|
protected org.springframework.http.MediaType |
getDefaultContentType() |
java.lang.String[] |
getExtNames()
返回extNames
|
protected java.lang.String |
getFileName(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
getIgnorePaginationKey()
返回ignorePaginationKey
|
java.lang.String |
getNameParamKey()
返回nameParamKey
|
java.lang.String |
getResolverPath()
返回resolverPath
|
protected java.lang.String |
getResolverPath(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
getResolverPathKey()
返回resolverPathKey
|
protected java.io.InputStream |
getTemplate(javax.servlet.http.HttpServletRequest request)
获取模板
|
java.lang.String |
getTemplateBasePath()
返回templateBasePath
|
java.lang.String |
getTemplatePathKey()
返回templatePathKey
|
boolean |
isAllowIgnorePagination()
返回allowIgnorePagination
|
boolean |
isAllowNameAsLastUri()
返回allowNameAsLastUri
|
boolean |
isAllowNameParam()
返回allowNameParam
|
boolean |
isAllowResolverPath()
返回allowResolverPath
|
protected boolean |
matchExtName(java.lang.String name) |
java.lang.Object |
read(java.lang.reflect.Type type,
java.lang.Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
protected java.lang.Object |
readInternal(java.lang.Class<? extends java.lang.Object> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setAllowIgnorePagination(boolean allowIgnorePagination)
设置allowIgnorePagination
|
void |
setAllowNameAsLastUri(boolean allowNameAsLastUri)
设置allowNameAsLastUri
|
void |
setAllowNameParam(boolean allowNameParam)
设置allowNameParam
|
void |
setAllowResolverPath(boolean allowResolverPath)
设置allowResolverPath
|
void |
setExtNames(java.lang.String[] extNames)
设置extNames
|
void |
setIgnorePaginationKey(java.lang.String ignorePaginationKey)
设置ignorePaginationKey
|
void |
setNameParamKey(java.lang.String nameParamKey)
设置nameParamKey
|
void |
setResolverPath(java.lang.String resolverPath)
设置resolverPath
|
void |
setResolverPathKey(java.lang.String resolverPathKey)
设置resolverPathKey
|
void |
setTemplateBasePath(java.lang.String templateBasePath)
设置templateBasePath
|
void |
setTemplatePathKey(java.lang.String templatePathKey)
设置templatePathKey
|
protected boolean |
supports(java.lang.Class<?> clazz) |
canRead, canWrite, write, writeInternal, writeInternaladdDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeprotected final org.slf4j.Logger logger
protected java.lang.String[] extNames
protected boolean allowNameParam
protected java.lang.String nameParamKey
protected java.lang.String resolverPath
protected boolean allowResolverPath
protected java.lang.String resolverPathKey
protected boolean allowIgnorePagination
protected java.lang.String ignorePaginationKey
protected java.lang.String templatePathKey
protected java.lang.String templateBasePath
public java.lang.Object read(java.lang.reflect.Type type,
java.lang.Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage)
throws java.io.IOException,
org.springframework.http.converter.HttpMessageNotReadableException
java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionprotected boolean supports(java.lang.Class<?> clazz)
supports 在类中 org.springframework.http.converter.AbstractGenericHttpMessageConverter<java.lang.Object>protected java.lang.Object readInternal(java.lang.Class<? extends java.lang.Object> clazz,
org.springframework.http.HttpInputMessage inputMessage)
throws java.io.IOException,
org.springframework.http.converter.HttpMessageNotReadableException
readInternal 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<java.lang.Object>java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionprotected boolean matchExtName(java.lang.String name)
protected java.io.InputStream getTemplate(javax.servlet.http.HttpServletRequest request)
获取模板
request - HttpServletRequestprotected java.lang.String getFileName(javax.servlet.http.HttpServletRequest request)
protected java.lang.Object getDataFromResult(java.lang.Object result,
javax.servlet.http.HttpServletRequest request)
从结果对象获取数据对象
result - 结果对象request - HttpServletRequestprotected java.lang.String getResolverPath(javax.servlet.http.HttpServletRequest request)
protected org.springframework.http.MediaType getDefaultContentType()
throws java.io.IOException
java.io.IOExceptionpublic boolean isAllowNameParam()
public void setAllowNameParam(boolean allowNameParam)
allowNameParam - allowNameParampublic java.lang.String getNameParamKey()
public void setNameParamKey(java.lang.String nameParamKey)
nameParamKey - nameParamKeypublic java.lang.String[] getExtNames()
public void setExtNames(java.lang.String[] extNames)
extNames - extNamespublic java.lang.String getResolverPath()
public void setResolverPath(java.lang.String resolverPath)
resolverPath - resolverPathpublic boolean isAllowResolverPath()
public void setAllowResolverPath(boolean allowResolverPath)
allowResolverPath - allowResolverPathpublic java.lang.String getResolverPathKey()
public void setResolverPathKey(java.lang.String resolverPathKey)
resolverPathKey - resolverPathKeypublic boolean isAllowNameAsLastUri()
public void setAllowNameAsLastUri(boolean allowNameAsLastUri)
allowNameAsLastUri - allowNameAsLastUripublic boolean isAllowIgnorePagination()
public void setAllowIgnorePagination(boolean allowIgnorePagination)
allowIgnorePagination - allowIgnorePaginationpublic java.lang.String getIgnorePaginationKey()
public void setIgnorePaginationKey(java.lang.String ignorePaginationKey)
ignorePaginationKey - ignorePaginationKeypublic java.lang.String getTemplatePathKey()
public void setTemplatePathKey(java.lang.String templatePathKey)
templatePathKey - templatePathKeypublic java.lang.String getTemplateBasePath()
public void setTemplateBasePath(java.lang.String templateBasePath)
templateBasePath - templateBasePath