Source code: org/apache/axis/attachments/MultiPartInputStream.java
1 /*
2 * Copyright 2001-2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.apache.axis.attachments;
18
19
20 import org.apache.axis.Part;
21
22
23 /**
24 * This simulates the multipart stream.
25 *
26 * @author Rick Rineholt
27 */
28 public abstract class MultiPartInputStream extends
29 java.io.FilterInputStream {
30
31 MultiPartInputStream(java.io.InputStream is) {
32 super(is);
33 }
34
35 public abstract Part getAttachmentByReference(final String[] id)
36 throws org.apache.axis.AxisFault;
37
38 public abstract java.util.Collection getAttachments()
39 throws org.apache.axis.AxisFault;
40
41 /**
42 * Return the content location.
43 * @return the Content-Location of the stream.
44 * Null if no content-location specified.
45 */
46 public abstract String getContentLocation();
47
48 /**
49 * Return the content id of the stream.
50 *
51 * @return the Content-Location of the stream.
52 * Null if no content-location specified.
53 */
54 public abstract String getContentId();
55
56 }