|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.oxm.jaxb.AbstractJaxbMarshaller
org.springframework.oxm.jaxb.Jaxb1Marshaller
public class Jaxb1Marshaller
Implementation of the Marshaller interface for JAXB 1.0.
contextPath property on this bean, possibly customize the
marshaller and unmarshaller by setting properties, and validations, and to refer to it.
AbstractJaxbMarshaller.setContextPath(String),
AbstractJaxbMarshaller.setMarshallerProperties(java.util.Map),
AbstractJaxbMarshaller.setUnmarshallerProperties(java.util.Map),
setValidating(boolean)| Field Summary |
|---|
| Fields inherited from class org.springframework.oxm.jaxb.AbstractJaxbMarshaller |
|---|
logger |
| Constructor Summary | |
|---|---|
Jaxb1Marshaller()
|
|
| Method Summary | |
|---|---|
protected JAXBContext |
createJaxbContext()
Template method that returns a newly created JAXB context. |
protected void |
initJaxbUnmarshaller(Unmarshaller unmarshaller)
Template method that can overridden by concrete JAXB marshallers for custom initialization behavior. |
void |
marshal(Object graph,
Result result)
Marshals the object graph with the given root into the provided Result. |
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setValidating(boolean validating)
Set if the JAXB Unmarshaller should validate the incoming document. |
boolean |
supports(Class clazz)
Indicates whether this marshaller can marshal instances of the supplied type. |
Object |
unmarshal(Source source)
Unmarshals the given Source into an object graph. |
| Methods inherited from class org.springframework.oxm.jaxb.AbstractJaxbMarshaller |
|---|
afterPropertiesSet, convertJaxbException, createMarshaller, createUnmarshaller, getContextPath, getJaxbContext, initJaxbMarshaller, setContextPath, setContextPaths, setMarshallerProperties, setUnmarshallerProperties, setValidationEventHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Jaxb1Marshaller()
| Method Detail |
|---|
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwarepublic void setValidating(boolean validating)
Unmarshaller should validate the incoming document. Default is false.
public boolean supports(Class clazz)
Marshaller
supports in interface Marshallersupports in interface Unmarshallerclazz - the class that this marshaller is being asked if it can marshal
true if this marshaller can indeed marshal instances of the supplied class;
false otherwise
protected final JAXBContext createJaxbContext()
throws JAXBException
AbstractJaxbMarshallerafterPropertiesSet().
createJaxbContext in class AbstractJaxbMarshallerJAXBException
protected void initJaxbUnmarshaller(Unmarshaller unmarshaller)
throws JAXBException
AbstractJaxbMarshallerUnmarshaller, and after the respective properties have been set.
Default implementation does nothing.
initJaxbUnmarshaller in class AbstractJaxbMarshallerJAXBException
public void marshal(Object graph,
Result result)
MarshallerResult.
marshal in interface Marshallergraph - the root of the object graph to marshalresult - the result to marshal topublic Object unmarshal(Source source)
UnmarshallerSource into an object graph.
unmarshal in interface Unmarshallersource - the source to marshal from
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||