public class JaxbTypeFactory extends TypeFactoryImpl
Constructor and Description |
---|
JaxbTypeFactory(XmlRpcController pController,
JAXBContext pContext)
Creates a new instance with the given controller and
JAXB context.
|
Modifier and Type | Method and Description |
---|---|
TypeParser |
getParser(XmlRpcStreamConfig pConfig,
org.apache.ws.commons.util.NamespaceContextImpl pContext,
String pURI,
String pLocalName)
Creates a parser for a parameter or result object.
|
TypeSerializer |
getSerializer(XmlRpcStreamConfig pConfig,
Object pObject)
Creates a serializer for the object
pObject . |
getController
public JaxbTypeFactory(XmlRpcController pController, JAXBContext pContext)
pController
- The controller, which will invoke the factory.pContext
- The context being used to create marshallers
and unmarshallers.public TypeParser getParser(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, String pURI, String pLocalName)
TypeFactory
getParser
in interface TypeFactory
getParser
in class TypeFactoryImpl
pConfig
- The request configuration.pContext
- A namespace context, for looking up prefix mappings.pURI
- The namespace URI of the element containing the parameter or result.pLocalName
- The local name of the element containing the parameter or result.public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig, Object pObject) throws SAXException
TypeFactory
pObject
.getSerializer
in interface TypeFactory
getSerializer
in class TypeFactoryImpl
pConfig
- The request configuration.pObject
- The object being serialized.pObject
.SAXException
- Creating the serializer failed.Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.