FileDocCategorySizeDatePackage
MimeHeaders.javaAPI DocApache Axis 1.42203Sat Apr 22 18:57:28 BST 2006org.apache.axis.message

MimeHeaders

public class MimeHeaders extends MimeHeaders implements Externalizable
wraps javax.xml.soap.MimeHeaders and implements java.io.Serializable interface

Fields Summary
Constructors Summary
public MimeHeaders()

    
public MimeHeaders(MimeHeaders h)

        Iterator iterator = h.getAllHeaders();
        while (iterator.hasNext()) {
            MimeHeader hdr = (MimeHeader) iterator.next();
            addHeader(hdr.getName(), hdr.getValue());
        }
    
Methods Summary
private intgetHeaderSize()

        int size = 0;
        Iterator iterator = getAllHeaders();
        while (iterator.hasNext()) {
            iterator.next();
            size++;
        }
        return size;
    
public voidreadExternal(java.io.ObjectInput in)

        int size = in.readInt();
        for (int i = 0; i < size; i++) {
            Object key = in.readObject();
            Object value = in.readObject();
            addHeader((String)key, (String)value);
        }
    
public voidwriteExternal(java.io.ObjectOutput out)

        out.writeInt(getHeaderSize());
        Iterator iterator = getAllHeaders();
        while (iterator.hasNext()) {
            MimeHeader hdr = (MimeHeader) iterator.next();
            out.writeObject(hdr.getName());
            out.writeObject(hdr.getValue());
        }