01: /*
02: * Copyright 2004,2005 The Apache Software Foundation.
03: * Copyright 2006 International Business Machines Corp.
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.axis2.jaxws.description;
18:
19: /**
20: * A parameter or return value may be represented as an attachment.
21: * In such cases, the ParameterDescription or OperationDescription has
22: * an AttachmentDescription defining the attachment information.
23: *
24: * Note that an Attachment may be one of 3 types: SWA, SWAREF and MTOM.
25: * SWAREF and MTOM attachments have an xml element (either in the body or header)
26: * that references the attachment part.
27: *
28: * SWA attachments are represented as an attachment part. There are is no
29: * xml element that references the attachment.
30: *
31: */
32: public interface AttachmentDescription {
33:
34: /**
35: * @Return The attachment type
36: */
37: AttachmentType getAttachmentType();
38:
39: /**
40: * @return one or more mime types defined for this attachment
41: */
42: String[] getMimeTypes();
43: }
|