Subversion Repositories XServices

Rev

Rev 22 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 23
Line 21... Line 21...
21
import net.brutex.xservices.types.FileSetResource;
21
import net.brutex.xservices.types.FileSetResource;
22
import net.brutex.xservices.types.HostConnection;
22
import net.brutex.xservices.types.HostConnection;
23
import net.brutex.xservices.types.MailMimeType;
23
import net.brutex.xservices.types.MailMimeType;
24
import net.brutex.xservices.types.ReturnCode;
24
import net.brutex.xservices.types.ReturnCode;
25
import net.brutex.xservices.util.BrutexNamespaces;
25
import net.brutex.xservices.util.BrutexNamespaces;
-
 
26
import org.apache.cxf.annotations.WSDLDocumentation;
Line 26... Line 27...
26
 
27
 
27
/**
28
/**
28
 *
29
 *
29
 * @author Brian Rosenberger, bru@brutex.de
30
 * @author Brian Rosenberger, bru@brutex.de
30
 */
31
 */
31
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
32
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
Line -... Line 33...
-
 
33
public interface MiscService {
-
 
34
 
-
 
35
    
-
 
36
    
-
 
37
    /**
-
 
38
     * @param hostname
32
public interface MiscService {
39
     * @return
33
 
40
     */
Line -... Line 41...
-
 
41
    @WebMethod(operationName = "getHostinfo")
-
 
42
    public ReturnCode getHostinfo(@WebParam(name = "hostname") String hostname);
-
 
43
 
-
 
44
    /**
-
 
45
     *
-
 
46
     * @param mailhost
-
 
47
     * @param from
-
 
48
     * @param tolist
-
 
49
     * @param subject
34
    @WebMethod(operationName = "getHostinfo")
50
     * @param message
35
    public ReturnCode getHostinfo(@WebParam(name = "hostname") String hostname);
51
     * @return
36
 
52
     */
37
    @WebMethod(operationName = "sendMailSimple")
53
    @WebMethod(operationName = "sendMailSimple")
38
    public ReturnCode sendMailSimple(@WebParam(name = "mailhost") HostConnection mailhost,
54
    public ReturnCode sendMailSimple(@WebParam(name = "mailhost") HostConnection mailhost,
39
            @WebParam(name = "from") String from,
55
            @WebParam(name = "from") String from,
Line -... Line 56...
-
 
56
            @WebParam(name = "to") String tolist,
-
 
57
            @WebParam(name = "subject") String subject,
-
 
58
            @WebParam(name = "message") String message);
-
 
59
 
-
 
60
    /**
-
 
61
     *
-
 
62
     * @param mailhost
-
 
63
     * @param from
-
 
64
     * @param tolist
-
 
65
     * @param subject
40
            @WebParam(name = "to") String tolist,
66
     * @param message
41
            @WebParam(name = "subject") String subject,
67
     * @param res
42
            @WebParam(name = "message") String message);
68
     * @return
43
 
69
     */
44
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
70
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
45
    public ReturnCode sendMailSimpleWithAttachment(@WebParam(name = "mailhost") HostConnection mailhost,
71
    public ReturnCode sendMailSimpleWithAttachment(@WebParam(name = "mailhost") HostConnection mailhost,
46
            @WebParam(name = "from") String from,
72
            @WebParam(name = "from") String from,
Line -... Line 73...
-
 
73
            @WebParam(name = "to") String tolist,
-
 
74
            @WebParam(name = "subject") String subject,
-
 
75
            @WebParam(name = "message") String message,
-
 
76
            @WebParam(name = "attachments") FileSetResource res);
-
 
77
 
-
 
78
    /**
-
 
79
     *
-
 
80
     * @param mailhost
-
 
81
     * @param from
-
 
82
     * @param tolist
-
 
83
     * @param cclist
-
 
84
     * @param bcclist
-
 
85
     * @param subject
-
 
86
     * @param mimetype
-
 
87
     * @param charset
-
 
88
     * @param message
47
            @WebParam(name = "to") String tolist,
89
     * @param res
48
            @WebParam(name = "subject") String subject,
90
     * @param ssl
49
            @WebParam(name = "message") String message,
91
     * @param tls
50
            @WebParam(name = "attachments") FileSetResource res);
92
     * @return
51
 
93
     */
Line 61... Line 103...
61
            @WebParam(name = "message") String message,
103
            @WebParam(name = "message") String message,
62
            @WebParam(name = "attachments") FileSetResource res,
104
            @WebParam(name = "attachments") FileSetResource res,
63
            @WebParam(name = "useSSL") boolean ssl,
105
            @WebParam(name = "useSSL") boolean ssl,
64
            @WebParam(name = "useStartTLS") boolean tls);
106
            @WebParam(name = "useStartTLS") boolean tls);
Line -... Line 107...
-
 
107
 
-
 
108
    /**
-
 
109
     *
-
 
110
     * @param minutes
-
 
111
     * @param seconds
-
 
112
     * @return
65
 
113
     */
66
    @WebMethod(operationName = "sleep")
114
    @WebMethod(operationName = "sleep")
67
    public ReturnCode sleep(@WebParam(name = "minutes") int minutes,
115
    public ReturnCode sleep(@WebParam(name = "minutes") int minutes,
68
            @WebParam(name = "seconds") int seconds);
116
            @WebParam(name = "seconds") int seconds);