KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > webservice > attachment > Attachment


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.webservice.attachment;
23
24 import java.rmi.Remote JavaDoc;
25 import java.rmi.RemoteException JavaDoc;
26
27 import javax.activation.DataHandler JavaDoc;
28 import javax.xml.transform.Source JavaDoc;
29
30 /**
31  * Service Endpoint Interface for the MIME mapping required by JAXRPC-1.1
32  *
33  * image/gif java.awt.Image
34  * image/jpeg java.awt.Image
35  * text/plain java.lang.String
36  * multipart/* javax.mail.internet.MimeMultipart
37  * text/xml javax.xml.transform.Source
38  * application/xml javax.xml.transform.Source
39  *
40  * @author Thomas.Diesler@jboss.org
41  * @since Nov 17, 2004
42  */

43 public interface Attachment extends Remote JavaDoc
44 {
45    /** Service endpoint method for image/gif */
46    String JavaDoc sendMimeImageGIF(String JavaDoc message, Object JavaDoc mimepart) throws RemoteException JavaDoc;
47
48    /** Service endpoint method for image/jpeg */
49    String JavaDoc sendMimeImageJPEG(String JavaDoc message, Object JavaDoc mimepart) throws RemoteException JavaDoc;
50
51    /** Service endpoint method for text/plain */
52    String JavaDoc sendMimeTextPlain(String JavaDoc message, Object JavaDoc mimepart) throws RemoteException JavaDoc;
53
54    /** Service endpoint method for multipart/* */
55    String JavaDoc sendMimeMultipart(String JavaDoc message, Object JavaDoc mimepart) throws RemoteException JavaDoc;
56
57    /** Service endpoint method for text/xml */
58    String JavaDoc sendMimeTextXML(String JavaDoc message, Object JavaDoc mimepart) throws RemoteException JavaDoc;
59
60    /** Service endpoint method for application/xml */
61    String JavaDoc sendMimeApplicationXML(String JavaDoc message, Object JavaDoc mimepart) throws RemoteException JavaDoc;
62
63    /** Service endpoint method for image/gif */
64    Object JavaDoc echoMimeImageGIF(Object JavaDoc mimepart) throws RemoteException JavaDoc;
65
66    /** Service endpoint method for image/jpeg */
67    Object JavaDoc echoMimeImageJPEG(Object JavaDoc mimepart) throws RemoteException JavaDoc;
68
69    /** Service endpoint method for text/plain */
70    Object JavaDoc echoMimeTextPlain(Object JavaDoc mimepart) throws RemoteException JavaDoc;
71
72    /** Service endpoint method for multipart/* */
73    Object JavaDoc echoMimeMultipart(Object JavaDoc mimepart) throws RemoteException JavaDoc;
74
75    /** Service endpoint method for text/xml */
76    Object JavaDoc echoMimeTextXML(Object JavaDoc mimepart) throws RemoteException JavaDoc;
77
78    /** Service endpoint method for application/xml */
79    Source JavaDoc echoMimeApplicationXML(Source JavaDoc mimepart) throws RemoteException JavaDoc;
80
81    DataHandler JavaDoc echoHandler(DataHandler JavaDoc mimepart) throws RemoteException JavaDoc;
82 }
83
Popular Tags