saaj

16:51:57.841 INFO  jd.cli.Main - Decompiling saaj.jar
package javax.xml.soap;

import java.util.Iterator;
import javax.activation.DataHandler;

public abstract class AttachmentPart
{
  public abstract int getSize()
    throws SOAPException;
  
  public abstract void clearContent();
  
  public abstract Object getContent()
    throws SOAPException;
  
  public abstract void setContent(Object paramObject, String paramString);
  
  public abstract DataHandler getDataHandler()
    throws SOAPException;
  
  public abstract void setDataHandler(DataHandler paramDataHandler);
  
  public String getContentId()
  {
    String[] as = getMimeHeader("Content-Id");
    if (as != null) {
      return as[0];
    }
    return null;
  }
  
  public String getContentLocation()
  {
    String[] as = getMimeHeader("Content-Location");
    if (as != null) {
      return as[0];
    }
    return null;
  }
  
  public String getContentType()
  {
    String[] as = getMimeHeader("Content-Type");
    if (as != null) {
      return as[0];
    }
    return null;
  }
  
  public void setContentId(String contentId)
  {
    setMimeHeader("Content-Id", contentId);
  }
  
  public void setContentLocation(String contentLocation)
  {
    setMimeHeader("Content-Location", contentLocation);
  }
  
  public void setContentType(String contentType)
  {
    setMimeHeader("Content-Type", contentType);
  }
  
  public abstract void removeMimeHeader(String paramString);
  
  public abstract void removeAllMimeHeaders();
  
  public abstract String[] getMimeHeader(String paramString);
  
  public abstract void setMimeHeader(String paramString1, String paramString2);
  
  public abstract void addMimeHeader(String paramString1, String paramString2);
  
  public abstract Iterator getAllMimeHeaders();
  
  public abstract Iterator getMatchingMimeHeaders(String[] paramArrayOfString);
  
  public abstract Iterator getNonMatchingMimeHeaders(String[] paramArrayOfString);
}

/* Location:
 * Qualified Name:     javax.xml.soap.AttachmentPart
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.util.Iterator;

public abstract interface Detail
  extends SOAPFaultElement
{
  public abstract DetailEntry addDetailEntry(Name paramName)
    throws SOAPException;
  
  public abstract Iterator getDetailEntries();
}

/* Location:
 * Qualified Name:     javax.xml.soap.Detail
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface DetailEntry
  extends SOAPElement
{}

/* Location:
 * Qualified Name:     javax.xml.soap.DetailEntry
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

class FactoryFinder
{
  private static Object newInstance(String factoryClassName, ClassLoader classloader)
    throws SOAPException
  {
    try
    {
      Class factory;
      if (classloader == null) {
        factory = Class.forName(factoryClassName);
      } else {
        factory = classloader.loadClass(factoryClassName);
      }
      return factory.newInstance();
    }
    catch (ClassNotFoundException classnotfoundexception)
    {
      throw new SOAPException("Provider " + factoryClassName + " not found", classnotfoundexception);
    }
    catch (Exception exception)
    {
      throw new SOAPException("Provider " + factoryClassName + " could not be instantiated: " + exception, exception);
    }
  }
  
  static Object find(String factoryPropertyName, String defaultFactoryClassName)
    throws SOAPException
  {
    ClassLoader classloader;
    try
    {
      classloader = Thread.currentThread().getContextClassLoader();
    }
    catch (Exception exception)
    {
      throw new SOAPException(exception.toString(), exception);
    }
    try
    {
      String factoryClassName = System.getProperty(factoryPropertyName);
      if (factoryClassName != null) {
        return newInstance(factoryClassName, classloader);
      }
    }
    catch (SecurityException securityexception) {}
    try
    {
      String propertiesFileName = System.getProperty("java.home") + File.separator + "lib" + File.separator + "jaxm.properties";
      
      File file = new File(propertiesFileName);
      if (file.exists())
      {
        FileInputStream fileInput = new FileInputStream(file);
        Properties properties = new Properties();
        
        properties.load(fileInput);
        fileInput.close();
        
        String factoryClassName = properties.getProperty(factoryPropertyName);
        
        return newInstance(factoryClassName, classloader);
      }
    }
    catch (Exception exception1) {}
    String factoryResource = "META-INF/services/" + factoryPropertyName;
    try
    {
      InputStream inputstream = null;
      if (classloader == null) {
        inputstream = ClassLoader.getSystemResourceAsStream(factoryResource);
      } else {
        inputstream = classloader.getResourceAsStream(factoryResource);
      }
      if (inputstream != null)
      {
        BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(inputstream, "UTF-8"));
        
        String factoryClassName = bufferedreader.readLine();
        
        bufferedreader.close();
        if ((factoryClassName != null) && (!"".equals(factoryClassName))) {
          return newInstance(factoryClassName, classloader);
        }
      }
    }
    catch (Exception exception2) {}
    if (defaultFactoryClassName == null) {
      throw new SOAPException("Provider for " + factoryPropertyName + " cannot be found", null);
    }
    return newInstance(defaultFactoryClassName, classloader);
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.FactoryFinder
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.io.IOException;
import java.io.InputStream;

public abstract class MessageFactory
{
  public static MessageFactory newInstance()
    throws SOAPException
  {
    try
    {
      return (MessageFactory)FactoryFinder.find("javax.xml.soap.MessageFactory", "org.apache.axis.soap.MessageFactoryImpl");
    }
    catch (Exception exception)
    {
      throw new SOAPException("Unable to create message factory for SOAP: " + exception.getMessage());
    }
  }
  
  static Class clz = null;
  private static final String DEFAULT_MESSAGE_FACTORY = "org.apache.axis.soap.MessageFactoryImpl";
  private static final String MESSAGE_FACTORY_PROPERTY = "javax.xml.soap.MessageFactory";
  
  public abstract SOAPMessage createMessage()
    throws SOAPException;
  
  public abstract SOAPMessage createMessage(MimeHeaders paramMimeHeaders, InputStream paramInputStream)
    throws IOException, SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.MessageFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public class MimeHeader
{
  private String name;
  private String value;
  
  public MimeHeader(String name, String value)
  {
    this.name = name;
    this.value = value;
  }
  
  public String getName()
  {
    return name;
  }
  
  public String getValue()
  {
    return value;
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.MimeHeader
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.util.Iterator;
import java.util.Vector;

class MimeHeaders$MatchingIterator
  implements Iterator
{
  private boolean match;
  private Iterator iterator;
  private String[] names;
  private Object nextHeader;
  private final MimeHeaders this$0;
  
  private Object nextMatch()
  {
    while (iterator.hasNext())
    {
      MimeHeader mimeheader = (MimeHeader)iterator.next();
      if (names == null) {
        return match ? null : mimeheader;
      }
      for (int i = 0; i < names.length; i++) {
        if (mimeheader.getName().equalsIgnoreCase(names[i]))
        {
          if (!match) {
            break;
          }
          return mimeheader;
        }
      }
      if (!match) {
        return mimeheader;
      }
    }
    return null;
  }
  
  public boolean hasNext()
  {
    if (nextHeader == null) {
      nextHeader = nextMatch();
    }
    return nextHeader != null;
  }
  
  public Object next()
  {
    if (nextHeader != null)
    {
      Object obj = nextHeader;
      
      nextHeader = null;
      
      return obj;
    }
    if (hasNext()) {
      return nextHeader;
    }
    return null;
  }
  
  public void remove()
  {
    iterator.remove();
  }
  
  MimeHeaders$MatchingIterator(MimeHeaders this$0, String[] as, boolean flag)
  {
    this.this$0 = this$0;
    
    match = flag;
    names = as;
    iterator = MimeHeaders.access$000(this$0).iterator();
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.MimeHeaders.MatchingIterator
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.util.Iterator;
import java.util.Vector;

public class MimeHeaders
{
  private Vector headers;
  
  class MatchingIterator
    implements Iterator
  {
    private boolean match;
    private Iterator iterator;
    private String[] names;
    private Object nextHeader;
    
    private Object nextMatch()
    {
      while (iterator.hasNext())
      {
        MimeHeader mimeheader = (MimeHeader)iterator.next();
        if (names == null) {
          return match ? null : mimeheader;
        }
        for (int i = 0; i < names.length; i++) {
          if (mimeheader.getName().equalsIgnoreCase(names[i]))
          {
            if (!match) {
              break;
            }
            return mimeheader;
          }
        }
        if (!match) {
          return mimeheader;
        }
      }
      return null;
    }
    
    public boolean hasNext()
    {
      if (nextHeader == null) {
        nextHeader = nextMatch();
      }
      return nextHeader != null;
    }
    
    public Object next()
    {
      if (nextHeader != null)
      {
        Object obj = nextHeader;
        
        nextHeader = null;
        
        return obj;
      }
      if (hasNext()) {
        return nextHeader;
      }
      return null;
    }
    
    public void remove()
    {
      iterator.remove();
    }
    
    MatchingIterator(String[] as, boolean flag)
    {
      match = flag;
      names = as;
      iterator = headers.iterator();
    }
  }
  
  public MimeHeaders()
  {
    headers = new Vector();
  }
  
  public String[] getHeader(String name)
  {
    Vector vector = new Vector();
    for (int i = 0; i < headers.size(); i++)
    {
      MimeHeader mimeheader = (MimeHeader)headers.elementAt(i);
      if ((mimeheader.getName().equalsIgnoreCase(name)) && (mimeheader.getValue() != null)) {
        vector.addElement(mimeheader.getValue());
      }
    }
    if (vector.size() == 0) {
      return null;
    }
    String[] as = new String[vector.size()];
    
    vector.copyInto(as);
    
    return as;
  }
  
  public void setHeader(String name, String value)
  {
    boolean flag = false;
    if ((name == null) || (name.equals(""))) {
      throw new IllegalArgumentException("Illegal MimeHeader name");
    }
    for (int i = 0; i < headers.size(); i++)
    {
      MimeHeader mimeheader = (MimeHeader)headers.elementAt(i);
      if (mimeheader.getName().equalsIgnoreCase(name)) {
        if (!flag)
        {
          headers.setElementAt(new MimeHeader(mimeheader.getName(), value), i);
          
          flag = true;
        }
        else
        {
          headers.removeElementAt(i--);
        }
      }
    }
    if (!flag) {
      addHeader(name, value);
    }
  }
  
  public void addHeader(String name, String value)
  {
    if ((name == null) || (name.equals(""))) {
      throw new IllegalArgumentException("Illegal MimeHeader name");
    }
    int i = headers.size();
    for (int j = i - 1; j >= 0; j--)
    {
      MimeHeader mimeheader = (MimeHeader)headers.elementAt(j);
      if (mimeheader.getName().equalsIgnoreCase(name))
      {
        headers.insertElementAt(new MimeHeader(name, value), j + 1);
        
        return;
      }
    }
    headers.addElement(new MimeHeader(name, value));
  }
  
  public void removeHeader(String name)
  {
    for (int i = 0; i < headers.size(); i++)
    {
      MimeHeader mimeheader = (MimeHeader)headers.elementAt(i);
      if (mimeheader.getName().equalsIgnoreCase(name)) {
        headers.removeElementAt(i--);
      }
    }
  }
  
  public void removeAllHeaders()
  {
    headers.removeAllElements();
  }
  
  public Iterator getAllHeaders()
  {
    return headers.iterator();
  }
  
  public Iterator getMatchingHeaders(String[] names)
  {
    return new MatchingIterator(names, true);
  }
  
  public Iterator getNonMatchingHeaders(String[] names)
  {
    return new MatchingIterator(names, false);
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.MimeHeaders
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface Name
{
  public abstract String getLocalName();
  
  public abstract String getQualifiedName();
  
  public abstract String getPrefix();
  
  public abstract String getURI();
}

/* Location:
 * Qualified Name:     javax.xml.soap.Name
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface Node
{
  public abstract String getValue();
  
  public abstract void setParentElement(SOAPElement paramSOAPElement)
    throws SOAPException;
  
  public abstract SOAPElement getParentElement();
  
  public abstract void detachNode();
  
  public abstract void recycleNode();
}

/* Location:
 * Qualified Name:     javax.xml.soap.Node
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPBody
  extends SOAPElement
{
  public abstract SOAPFault addFault()
    throws SOAPException;
  
  public abstract boolean hasFault();
  
  public abstract SOAPFault getFault();
  
  public abstract SOAPBodyElement addBodyElement(Name paramName)
    throws SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPBody
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPBodyElement
  extends SOAPElement
{}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPBodyElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract class SOAPConnection
{
  public abstract SOAPMessage call(SOAPMessage paramSOAPMessage, Object paramObject)
    throws SOAPException;
  
  public abstract void close()
    throws SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPConnection
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract class SOAPConnectionFactory
{
  private static final String DEFAULT_SOAP_CONNECTION_FACTORY = "org.apache.axis.soap.SOAPConnectionFactoryImpl";
  private static final String SF_PROPERTY = "javax.xml.soap.SOAPConnectionFactory";
  
  public static SOAPConnectionFactory newInstance()
    throws SOAPException, UnsupportedOperationException
  {
    try
    {
      return (SOAPConnectionFactory)FactoryFinder.find("javax.xml.soap.SOAPConnectionFactory", "org.apache.axis.soap.SOAPConnectionFactoryImpl");
    }
    catch (Exception exception)
    {
      throw new SOAPException("Unable to create SOAP connection factory: " + exception.getMessage());
    }
  }
  
  public abstract SOAPConnection createConnection()
    throws SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPConnectionFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPConstants
{
  public static final String URI_NS_SOAP_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
  public static final String URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
  public static final String URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPConstants
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.util.Iterator;

public abstract interface SOAPElement
  extends Node
{
  public abstract SOAPElement addChildElement(Name paramName)
    throws SOAPException;
  
  public abstract SOAPElement addChildElement(String paramString)
    throws SOAPException;
  
  public abstract SOAPElement addChildElement(String paramString1, String paramString2)
    throws SOAPException;
  
  public abstract SOAPElement addChildElement(String paramString1, String paramString2, String paramString3)
    throws SOAPException;
  
  public abstract SOAPElement addChildElement(SOAPElement paramSOAPElement)
    throws SOAPException;
  
  public abstract SOAPElement addTextNode(String paramString)
    throws SOAPException;
  
  public abstract SOAPElement addAttribute(Name paramName, String paramString)
    throws SOAPException;
  
  public abstract SOAPElement addNamespaceDeclaration(String paramString1, String paramString2)
    throws SOAPException;
  
  public abstract String getAttributeValue(Name paramName);
  
  public abstract Iterator getAllAttributes();
  
  public abstract String getNamespaceURI(String paramString);
  
  public abstract Iterator getNamespacePrefixes();
  
  public abstract Name getElementName();
  
  public abstract boolean removeAttribute(Name paramName);
  
  public abstract boolean removeNamespaceDeclaration(String paramString);
  
  public abstract Iterator getChildElements();
  
  public abstract Iterator getChildElements(Name paramName);
  
  public abstract void setEncodingStyle(String paramString)
    throws SOAPException;
  
  public abstract String getEncodingStyle();
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

/**
 * @deprecated
 */
public class SOAPElementFactory
{
  private SOAPFactory sf;
  
  private SOAPElementFactory(SOAPFactory soapfactory)
  {
    sf = soapfactory;
  }
  
  /**
   * @deprecated
   */
  public SOAPElement create(Name name)
    throws SOAPException
  {
    return sf.createElement(name);
  }
  
  /**
   * @deprecated
   */
  public SOAPElement create(String localName)
    throws SOAPException
  {
    return sf.createElement(localName);
  }
  
  /**
   * @deprecated
   */
  public SOAPElement create(String localName, String prefix, String uri)
    throws SOAPException
  {
    return sf.createElement(localName, prefix, uri);
  }
  
  /**
   * @deprecated
   */
  public static SOAPElementFactory newInstance()
    throws SOAPException
  {
    try
    {
      return new SOAPElementFactory(SOAPFactory.newInstance());
    }
    catch (Exception exception)
    {
      throw new SOAPException("Unable to create SOAP Element Factory: " + exception.getMessage());
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPElementFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPEnvelope
  extends SOAPElement
{
  public abstract Name createName(String paramString1, String paramString2, String paramString3)
    throws SOAPException;
  
  public abstract Name createName(String paramString)
    throws SOAPException;
  
  public abstract SOAPHeader getHeader()
    throws SOAPException;
  
  public abstract SOAPBody getBody()
    throws SOAPException;
  
  public abstract SOAPHeader addHeader()
    throws SOAPException;
  
  public abstract SOAPBody addBody()
    throws SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPEnvelope
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public class SOAPException
  extends Exception
{
  private Throwable cause;
  
  public SOAPException()
  {
    cause = null;
  }
  
  public SOAPException(String reason)
  {
    super(reason);
    
    cause = null;
  }
  
  public SOAPException(String reason, Throwable cause)
  {
    super(reason);
    
    initCause(cause);
  }
  
  public SOAPException(Throwable cause)
  {
    super(cause.toString());
    
    initCause(cause);
  }
  
  public String getMessage()
  {
    String s = super.getMessage();
    if ((s == null) && (cause != null)) {
      return cause.getMessage();
    }
    return s;
  }
  
  public Throwable getCause()
  {
    return cause;
  }
  
  public synchronized Throwable initCause(Throwable cause)
  {
    if (this.cause != null) {
      throw new IllegalStateException("Can't override cause");
    }
    if (cause == this) {
      throw new IllegalArgumentException("Self-causation not permitted");
    }
    this.cause = cause;
    
    return this;
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPException
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract class SOAPFactory
{
  private static final String SF_PROPERTY = "javax.xml.soap.SOAPFactory";
  private static final String DEFAULT_SF = "org.apache.axis.soap.SOAPFactoryImpl";
  
  public abstract SOAPElement createElement(Name paramName)
    throws SOAPException;
  
  public abstract SOAPElement createElement(String paramString)
    throws SOAPException;
  
  public abstract SOAPElement createElement(String paramString1, String paramString2, String paramString3)
    throws SOAPException;
  
  public abstract Detail createDetail()
    throws SOAPException;
  
  public abstract Name createName(String paramString1, String paramString2, String paramString3)
    throws SOAPException;
  
  public abstract Name createName(String paramString)
    throws SOAPException;
  
  public static SOAPFactory newInstance()
    throws SOAPException
  {
    try
    {
      return (SOAPFactory)FactoryFinder.find("javax.xml.soap.SOAPFactory", "org.apache.axis.soap.SOAPFactoryImpl");
    }
    catch (Exception exception)
    {
      throw new SOAPException("Unable to create SOAP Factory: " + exception.getMessage());
    }
  }
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPFactory
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPFault
  extends SOAPBodyElement
{
  public abstract void setFaultCode(String paramString)
    throws SOAPException;
  
  public abstract String getFaultCode();
  
  public abstract void setFaultActor(String paramString)
    throws SOAPException;
  
  public abstract String getFaultActor();
  
  public abstract void setFaultString(String paramString)
    throws SOAPException;
  
  public abstract String getFaultString();
  
  public abstract Detail getDetail();
  
  public abstract Detail addDetail()
    throws SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPFault
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPFaultElement
  extends SOAPElement
{}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPFaultElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.util.Iterator;

public abstract interface SOAPHeader
  extends SOAPElement
{
  public abstract SOAPHeaderElement addHeaderElement(Name paramName)
    throws SOAPException;
  
  public abstract Iterator examineHeaderElements(String paramString);
  
  public abstract Iterator extractHeaderElements(String paramString);
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPHeader
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface SOAPHeaderElement
  extends SOAPElement
{
  public abstract void setActor(String paramString);
  
  public abstract String getActor();
  
  public abstract void setMustUnderstand(boolean paramBoolean);
  
  public abstract boolean getMustUnderstand();
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPHeaderElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import javax.activation.DataHandler;

public abstract class SOAPMessage
{
  public abstract String getContentDescription();
  
  public abstract void setContentDescription(String paramString);
  
  public abstract SOAPPart getSOAPPart();
  
  public abstract void removeAllAttachments();
  
  public abstract int countAttachments();
  
  public abstract Iterator getAttachments();
  
  public abstract Iterator getAttachments(MimeHeaders paramMimeHeaders);
  
  public abstract void addAttachmentPart(AttachmentPart paramAttachmentPart);
  
  public abstract AttachmentPart createAttachmentPart();
  
  public AttachmentPart createAttachmentPart(DataHandler datahandler)
  {
    AttachmentPart attachmentpart = createAttachmentPart();
    
    attachmentpart.setDataHandler(datahandler);
    
    return attachmentpart;
  }
  
  public abstract MimeHeaders getMimeHeaders();
  
  public AttachmentPart createAttachmentPart(Object content, String contentType)
  {
    AttachmentPart attachmentpart = createAttachmentPart();
    
    attachmentpart.setContent(content, contentType);
    
    return attachmentpart;
  }
  
  public abstract void saveChanges()
    throws SOAPException;
  
  public abstract boolean saveRequired();
  
  public abstract void writeTo(OutputStream paramOutputStream)
    throws SOAPException, IOException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPMessage
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

import java.util.Iterator;
import javax.xml.transform.Source;

public abstract class SOAPPart
{
  public abstract SOAPEnvelope getEnvelope()
    throws SOAPException;
  
  public String getContentId()
  {
    String[] as = getMimeHeader("Content-Id");
    if (as != null) {
      return as[0];
    }
    return null;
  }
  
  public String getContentLocation()
  {
    String[] as = getMimeHeader("Content-Location");
    if (as != null) {
      return as[0];
    }
    return null;
  }
  
  public void setContentId(String contentId)
  {
    setMimeHeader("Content-Id", contentId);
  }
  
  public void setContentLocation(String contentLocation)
  {
    setMimeHeader("Content-Location", contentLocation);
  }
  
  public abstract void removeMimeHeader(String paramString);
  
  public abstract void removeAllMimeHeaders();
  
  public abstract String[] getMimeHeader(String paramString);
  
  public abstract void setMimeHeader(String paramString1, String paramString2);
  
  public abstract void addMimeHeader(String paramString1, String paramString2);
  
  public abstract Iterator getAllMimeHeaders();
  
  public abstract Iterator getMatchingMimeHeaders(String[] paramArrayOfString);
  
  public abstract Iterator getNonMatchingMimeHeaders(String[] paramArrayOfString);
  
  public abstract void setContent(Source paramSource)
    throws SOAPException;
  
  public abstract Source getContent()
    throws SOAPException;
}

/* Location:
 * Qualified Name:     javax.xml.soap.SOAPPart
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package javax.xml.soap;

public abstract interface Text
  extends Node
{
  public abstract boolean isComment();
}

/* Location:
 * Qualified Name:     javax.xml.soap.Text
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd