1 16 package org.apache.axis.attachments; 17 18 import org.apache.axis.Part; 19 20 30 public interface Attachments extends java.io.Serializable { 31 32 39 public Part addAttachmentPart(Part newPart) 40 throws org.apache.axis.AxisFault; 41 42 52 public Part removeAttachmentPart(String reference) 53 throws org.apache.axis.AxisFault; 54 55 61 public void removeAllAttachments(); 62 63 72 public Part getAttachmentByReference(String reference) 73 throws org.apache.axis.AxisFault; 74 75 82 public java.util.Collection getAttachments() 83 throws org.apache.axis.AxisFault; 84 85 96 public java.util.Iterator getAttachments( 97 javax.xml.soap.MimeHeaders headers); 98 99 109 public Part createAttachmentPart(Object part) 110 throws org.apache.axis.AxisFault; 111 112 120 public Part createAttachmentPart() throws org.apache.axis.AxisFault; 121 122 129 public void setAttachmentParts(java.util.Collection parts) 130 throws org.apache.axis.AxisFault; 131 132 137 public Part getRootPart(); 138 139 144 public void setRootPart(Part newRoot); 145 146 153 public long getContentLength() throws org.apache.axis.AxisFault; 154 155 162 public void writeContentToStream(java.io.OutputStream os) 163 throws org.apache.axis.AxisFault; 164 165 172 public String getContentType() throws org.apache.axis.AxisFault; 173 174 179 public int getAttachmentCount(); 180 181 189 public boolean isAttachment(Object value); 190 191 192 193 public final int SEND_TYPE_NOTSET = 1; 194 195 196 public final int SEND_TYPE_MIME = 2; 198 199 public final int SEND_TYPE_DIME= 3; 201 202 public final int SEND_TYPE_NONE= 4; 204 final int SEND_TYPE_MAX = 4; 205 206 207 final int SEND_TYPE_DEFAULT = SEND_TYPE_MIME; 208 209 210 public final String CIDprefix= "cid:"; 211 212 219 220 public void setSendType( int sendtype); 221 222 228 229 public int getSendType(); 230 231 235 236 public void dispose(); 237 } 238 | Popular Tags |