| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.remoting.jaxrpc.support.AxisBeanMappingServicePostProcessor
public class AxisBeanMappingServicePostProcessor
Axis-specific JaxRpcServicePostProcessor that registers bean
 mappings for domain objects that follow the JavaBean pattern.
 
The same mappings are usually also registered at the server in Axis' "server-config.wsdd" file.
To be registered as a service post-processor on a
 LocalJaxRpcServiceFactoryBean or
 JaxRpcPortProxyFactoryBean,
 carrying appropriate configuration.
 
Note: Without such explicit bean mappings, a complex type like a domain object cannot be transferred via SOAP.
BeanSerializerFactory, 
BeanDeserializerFactory, 
LocalJaxRpcServiceFactory.setServicePostProcessors(org.springframework.remoting.jaxrpc.JaxRpcServicePostProcessor[]), 
LocalJaxRpcServiceFactory.setServicePostProcessors(org.springframework.remoting.jaxrpc.JaxRpcServicePostProcessor[])| Constructor Summary | |
|---|---|
| AxisBeanMappingServicePostProcessor() | |
| Method Summary | |
|---|---|
| protected  QName | getTypeQName(String name)Return a QNamefor the given name, relative to thenamespace URIof this post-processor, if given. | 
|  void | postProcessJaxRpcService(Service service)Register the specified bean mappings on the given Service's TypeMappingRegistry. | 
| protected  void | registerBeanMapping(TypeMapping mapping,
                    Class javaType,
                    QName wsdlType)Register a bean mapping for the given Java type and WSDL type. | 
| protected  void | registerBeanMapping(TypeMapping mapping,
                    Class javaType,
                    String wsdlTypeName)Register a bean mapping for the given Java type and WSDL type name. | 
| protected  void | registerBeanMappings(TypeMapping mapping)Perform the actual bean mapping registration. | 
|  void | setBeanClasses(Class[] beanClasses)Specify the bean mappings to register as Java types, with the WSDL type names inferred from the Java type names (using the short, that is, non-fully-qualified class name). | 
|  void | setBeanClassLoader(ClassLoader beanClassLoader)Callback that supplies the bean class loaderto
 a bean instance. | 
|  void | setBeanMappings(Properties beanMappingProps)Specify the bean mappings to register as String-String pairs, with the Java type name as key and the WSDL type name as value. | 
|  void | setEncodingStyleUri(String encodingStyleUri)Set the encoding style URI to use for the type mapping. | 
|  void | setTypeNamespaceUri(String typeNamespaceUri)Set the application-specific namespace to use for XML types, for example "urn:JPetStore". | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AxisBeanMappingServicePostProcessor()
| Method Detail | 
|---|
public void setEncodingStyleUri(String encodingStyleUri)
A typical value is "http://schemas.xmlsoap.org/soap/encoding/", as suggested by the JAX-RPC javadoc. However, note that the default behavior of this post-processor is to register the type mapping as JAX-RPC default if no explicit encoding style URI is given.
TypeMappingRegistry.register(java.lang.String, javax.xml.rpc.encoding.TypeMapping), 
TypeMappingRegistry.registerDefault(javax.xml.rpc.encoding.TypeMapping)public void setTypeNamespaceUri(String typeNamespaceUri)
TypeMapping.register(java.lang.Class, javax.xml.namespace.QName, javax.xml.rpc.encoding.SerializerFactory, javax.xml.rpc.encoding.DeserializerFactory)public void setBeanMappings(Properties beanMappingProps)
public void setBeanClasses(Class[] beanClasses)
public void setBeanClassLoader(ClassLoader beanClassLoader)
BeanClassLoaderAwareclass loader to
 a bean instance.
 Invoked after the population of normal bean properties but
 before an initialization callback such as
 InitializingBean's
 InitializingBean.afterPropertiesSet()
 method or a custom init-method.
setBeanClassLoader in interface BeanClassLoaderAwarebeanClassLoader - the owning class loader; may be null in
 which case a default ClassLoader must be used, for example
 the ClassLoader obtained via
 ClassUtils.getDefaultClassLoader()public void postProcessJaxRpcService(Service service)
TypeMappingRegistry.
postProcessJaxRpcService in interface JaxRpcServicePostProcessorservice - the current JAX-RPC Service
 (can be cast to an implementation-specific class if necessary)Service.getTypeMappingRegistry(), 
setBeanMappings(java.util.Properties), 
registerBeanMappings(javax.xml.rpc.encoding.TypeMapping)protected void registerBeanMappings(TypeMapping mapping)
mapping - the JAX-RPC TypeMapping to operate onsetBeanMappings(java.util.Properties), 
registerBeanMapping(javax.xml.rpc.encoding.TypeMapping, Class, String)
protected void registerBeanMapping(TypeMapping mapping,
                                   Class javaType,
                                   String wsdlTypeName)
mapping - the JAX-RPC TypeMapping to operate onjavaType - the Java typewsdlTypeName - the WSDL type name (as a String)
protected void registerBeanMapping(TypeMapping mapping,
                                   Class javaType,
                                   QName wsdlType)
mapping - the JAX-RPC TypeMapping to operate onjavaType - the Java typewsdlType - the WSDL type (as XML QName)protected final QName getTypeQName(String name)
QName for the given name, relative to the
 namespace URI of this post-processor, if given.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||