Novell exteNd Web Services SDK API

com.sssw.jbroker.web.encoding
Interface TypeMappingRegistry

All Superinterfaces:
Serializable, TypeMappingRegistry
All Known Implementing Classes:
DefaultTypeMappingRegistry

public interface TypeMappingRegistry
extends TypeMappingRegistry

The TypeMappingRegistry class is the Novell exteNd Web Services SDK version of the standard TypeMappingRegistry interface, which supports additional utility methods for importing type mappings.

Since:
jBroker Web 2.0

Method Summary
 void importTypeMappings(InputStream is, ClassLoader loader)
          Import type mappings from an input stream into this registry
 void importTypeMappings(Properties mappings)
          Import type mappings from a property object
 void importTypeMappings(Properties mappings, ClassLoader loader)
          Import the mappings from the given properties.
 void importTypeMappings(String resourceName)
          Import type mappings from a resource into this registry
 void importTypeMappings(String resourceName, ClassLoader loader)
          Import type mappings from a resource into this registry
 void importTypeMappings(String propResource, Servlet servlet)
          Import type mappings from property resource in servlet
 void importTypeMappings(String propResource, Servlet servlet, ClassLoader loader)
          Import type mappings from property resource in servlet
 void importTypeMappingsFromFile(String fileName)
          Import type mappings from a file into this registry
 void importTypeMappingsFromFile(String fileName, ClassLoader loader)
          Import type mappings from a file into this registry
 
Methods inherited from interface javax.xml.rpc.encoding.TypeMappingRegistry
clear, createTypeMapping, getDefaultTypeMapping, getRegisteredEncodingStyleURIs, getTypeMapping, register, registerDefault, removeTypeMapping, unregisterTypeMapping
 

Method Detail

importTypeMappings

public void importTypeMappings(String resourceName)
                        throws TypeMappingException,
                               IOException
Import type mappings from a resource into this registry

Parameters:
resourceName - the resource name with type mapping entries
Throws:
TypeMappingException - if import failed
IOException - if resource could not be read

importTypeMappings

public void importTypeMappings(String resourceName,
                               ClassLoader loader)
                        throws TypeMappingException,
                               IOException
Import type mappings from a resource into this registry

Parameters:
resourceName - the resource name with type mapping entries
loader - class loader to load mapping classes
Throws:
TypeMappingException - if import failed
IOException - if resource could not be read

importTypeMappingsFromFile

public void importTypeMappingsFromFile(String fileName)
                                throws TypeMappingException,
                                       IOException
Import type mappings from a file into this registry

Parameters:
fileName - name of the file with type mapping entries
Throws:
TypeMappingException - if import failed
IOException - if file could not be read

importTypeMappingsFromFile

public void importTypeMappingsFromFile(String fileName,
                                       ClassLoader loader)
                                throws TypeMappingException,
                                       IOException
Import type mappings from a file into this registry

Parameters:
fileName - name of the file with type mapping entries
loader - class loader to load mapping classes
Throws:
TypeMappingException - if import failed
IOException - if file could not be read

importTypeMappings

public void importTypeMappings(InputStream is,
                               ClassLoader loader)
                        throws IOException,
                               TypeMappingException
Import type mappings from an input stream into this registry

Parameters:
loader - class loader to load mapping classes
Throws:
TypeMappingException - if import failed
IOException - if stream could not be read

importTypeMappings

public void importTypeMappings(String propResource,
                               Servlet servlet)
                        throws TypeMappingException,
                               ServletException,
                               IOException
Import type mappings from property resource in servlet

Parameters:
propResource - name of the resource with type mapping entries
servlet - the servlet object
Throws:
TypeMappingException - if import failed
ServletException - if servlet context could not be retrieved
IOException - if stream could not be read

importTypeMappings

public void importTypeMappings(String propResource,
                               Servlet servlet,
                               ClassLoader loader)
                        throws TypeMappingException,
                               ServletException,
                               IOException
Import type mappings from property resource in servlet

Parameters:
propResource - name of the resource with type mapping entries
servlet - the servlet object
loader - class loader to load mapping classes
Throws:
TypeMappingException - if import failed
ServletException - if servlet context could not be retrieved
IOException - if stream could not be read

importTypeMappings

public void importTypeMappings(Properties mappings)
                        throws TypeMappingException
Import type mappings from a property object

Parameters:
mappings - property set with mappings
Throws:
TypeMappingException - if import failed

importTypeMappings

public void importTypeMappings(Properties mappings,
                               ClassLoader loader)
                        throws TypeMappingException
Import the mappings from the given properties. Each property value is a 6-tuple that represents an individual TypeMapping.

<java Type> <Serializer> <Deserializer> <URI> <LN> <location>

For example,

mapping1=Address AddressMarshaler AddressMarshaler urn:DemoApp Address http://schemas.acme.org/address
The java classes are loaded from the given class loader.

Parameters:
mappings - property set with mappings
loader - class loader to load mapping classes
Throws:
TypeMappingException - if import failed

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.