类 AbstractJaxb2HttpMessageConverter<T>
java.lang.Object
cn.taketoday.http.converter.AbstractHttpMessageConverter<T>
cn.taketoday.http.converter.xml.AbstractXmlHttpMessageConverter<T>
cn.taketoday.http.converter.xml.AbstractJaxb2HttpMessageConverter<T>
- 类型参数:
T- the converted object type
- 所有已实现的接口:
HttpMessageConverter<T>
public abstract class AbstractJaxb2HttpMessageConverter<T>
extends AbstractXmlHttpMessageConverter<T>
Abstract base class for
HttpMessageConverters
that use JAXB2. Creates JAXBContext object lazily.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Rossen Stoyanchev
-
字段概要
字段从类继承的字段 cn.taketoday.http.converter.AbstractHttpMessageConverter
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final MarshallercreateMarshaller(Class<?> clazz) Create a newMarshallerfor the given class.protected final UnmarshallercreateUnmarshaller(Class<?> clazz) Create a newUnmarshallerfor the given class.protected voidcustomizeMarshaller(Marshaller marshaller) Customize theMarshallercreated by this message converter before using it to write the object to the output.protected voidcustomizeUnmarshaller(Unmarshaller unmarshaller) Customize theUnmarshallercreated by this message converter before using it to read the object from the input.protected final JAXBContextgetJaxbContext(Class<?> clazz) Return aJAXBContextfor the given class.从类继承的方法 cn.taketoday.http.converter.xml.AbstractXmlHttpMessageConverter
readFromSource, readInternal, transform, writeInternal, writeToResult从类继承的方法 cn.taketoday.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supports, write从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
字段详细资料
-
jaxbContexts
-
-
构造器详细资料
-
AbstractJaxb2HttpMessageConverter
public AbstractJaxb2HttpMessageConverter()
-
-
方法详细资料
-
createMarshaller
Create a newMarshallerfor the given class.- 参数:
clazz- the class to create the marshaller for- 返回:
- the
Marshaller - 抛出:
HttpMessageConversionException- in case of JAXB errors
-
customizeMarshaller
Customize theMarshallercreated by this message converter before using it to write the object to the output.- 参数:
marshaller- the marshaller to customize- 另请参阅:
-
createUnmarshaller
Create a newUnmarshallerfor the given class.- 参数:
clazz- the class to create the unmarshaller for- 返回:
- the
Unmarshaller - 抛出:
HttpMessageConversionException- in case of JAXB errors
-
customizeUnmarshaller
Customize theUnmarshallercreated by this message converter before using it to read the object from the input.- 参数:
unmarshaller- the unmarshaller to customize- 另请参阅:
-
getJaxbContext
Return aJAXBContextfor the given class.- 参数:
clazz- the class to return the context for- 返回:
- the
JAXBContext - 抛出:
HttpMessageConversionException- in case of JAXB errors
-