javax.xml.rpc.encoding

Interface SerializerFactory

All Superinterfaces:
Serializable

public interface SerializerFactory
extends Serializable

Interface for a serializer factory.

Method Summary

Serializer
getSerializerAs(String type)
Returns the serializer for the given mechanism type.
Iterator<E>
getSupportedMechanismTypes(String type)
Returns the mechanism types.

Method Details

getSerializerAs

public Serializer getSerializerAs(String type)
Returns the serializer for the given mechanism type.
Usages and Demos :

View More Examples of getSerializerAs(String type)
   1:     DeserializerFactory     deserializerFactory;
   2:     SerializerFactory       serializerFactory;
   3:     DeserializerBase        deserializer;
   4:         ...
   5:                 if (objectArray[j] != null) c = objectArray[j].getClass();
   6:                 serializerFactory = typeMapping.getSerializer(c,(QName)parametersXMLType.elementAt(i));
   7:         ...
   8:                 serializer = (SerializerBase) serializerFactory.getSerializerAs("default");
   9:                 sOAPElement = serializer.serialize(objectArray[j],new NameImpl((String)parametersName.elementAt(i)), sOAPBodyElement, typeRegistry);
  10:         ...
  11:                 serializerFactory = typeMapping.getSerializer(c,(QName)parametersXMLType.elementAt(i));
  12:                 serializer = (SerializerBase) serializerFactory.getSerializerAs("default");

View Full Code Here
   1:     DeserializerFactory deserializerFactory;
   2:     SerializerFactory serializerFactory;
   3:     DeserializerBase deserializer;
   4:         ...
   5:              typeMapping = typeRegistry.getTypeMapping(operation.getReturnType().getNamespaceURI());     
   6:              serializerFactory = typeMapping.getSerializer(null, operation.getReturnType());
   7:         ...
   8:              serializer = (SerializerBase) serializerFactory.getSerializerAs("default");
   9:              sOAPBodyElementR.addChildElement((SOAPElementImpl)serializer.serialize(result,new NameImpl(operationName.getLocalPart()+"Result","ns",operationName.getNamespaceURI()),sOAPBodyElementR,typeRegistry));
  10:         ...
  11:                serializerFactory = typeMapping.getSerializer(null, param.getQName());
  12:                serializer = (SerializerBase) serializerFactory.getSerializerAs("default");

View Full Code Here

getSupportedMechanismTypes

public Iterator<E> getSupportedMechanismTypes(String type)
Returns the mechanism types.