JAFDataHandlerDeserializerpublic class JAFDataHandlerDeserializer extends org.apache.axis.encoding.DeserializerImpl JAFDataHandler Serializer |
Fields Summary |
---|
protected static Log | log |
Methods Summary |
---|
public org.apache.axis.message.SOAPHandler | onStartChild(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)Deserializer interface called on each child element encountered in
the XML stream.
if(namespace.equals(Constants.URI_XOP_INCLUDE) &&
localName.equals(Constants.ELEM_XOP_INCLUDE)) {
populateDataHandler(context, namespace, localName, attributes);
return null;
} else {
throw new SAXException(Messages.getMessage(
"noSubElements", namespace + ":" + localName));
}
| private void | populateDataHandler(org.apache.axis.encoding.DeserializationContext context, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attributes)
SOAPConstants soapConstants = context.getSOAPConstants();
QName type = context.getTypeFromAttributes(namespace,
localName,
attributes);
if (log.isDebugEnabled()) {
log.debug(Messages.getMessage("gotType00", "Deser", "" + type));
}
String href = attributes.getValue(soapConstants.getAttrHref());
if (href != null) {
Object ref = context.getObjectByRef(href);
try{
ref = AttachmentUtils.getActivationDataHandler((org.apache.axis.Part)ref);
}catch(AxisFault e){;}
setValue(ref);
}
| public void | startElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)
if (!context.isDoneParsing()) {
if (myElement == null) {
try {
myElement = makeNewElement(namespace, localName, prefix, attributes, context);
} catch (AxisFault axisFault) {
throw new SAXException(axisFault);
}
context.pushNewElement(myElement);
}
}
populateDataHandler(context, namespace, localName, attributes);
|
|