Subversion Repositories XServices

Rev

Rev 70 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 72
Line 22... Line 22...
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;
26
import org.apache.cxf.annotations.WSDLDocumentation;
-
 
27
import org.apache.cxf.annotations.WSDLDocumentationCollection;
Line 27... Line 28...
27
 
28
 
28
/**
29
/**
29
 *
30
 *
30
 * @author Brian Rosenberger, bru@brutex.de
31
 * @author Brian Rosenberger, bru@brutex.de
31
 * @since 0.4.0
32
 * @since 0.4.0
32
 */
33
 */
-
 
34
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
33
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
35
@WSDLDocumentation("Various service operations.")
Line 34... Line 36...
34
public interface MiscService {
36
public interface MiscService {
35
 
37
 
36
    
38
    
37
    
39
    
38
    /**
40
    /**
-
 
41
     * @param hostname
-
 
42
     * @return ReturnCode
39
     * @param hostname
43
     */
Line 40... Line 44...
40
     * @return
44
    @WebMethod(operationName = "getHostinfo")
41
     */
45
    @WSDLDocumentation(value = "Get information about a host.")
42
    @WebMethod(operationName = "getHostinfo")
46
    public ReturnCode getHostinfo(
43
    public ReturnCode getHostinfo(@WebParam(name = "hostname") String hostname);
47
    		@WebParam(name = "hostname") String hostname);
44
 
48
 
45
    /**
49
    /**
46
     *
50
     *
47
     * @param mailhost
51
     * @param mailhost
48
     * @param from
52
     * @param from
49
     * @param tolist
53
     * @param tolist
-
 
54
     * @param subject
50
     * @param subject
55
     * @param message
51
     * @param message
56
     * @return ReturnCode
52
     * @return
57
     */
53
     */
58
    @WebMethod(operationName = "sendMailSimple")
54
    @WebMethod(operationName = "sendMailSimple")
59
    @WSDLDocumentation(value = "Send an email (simple).")
Line 64... Line 69...
64
     * @param from
69
     * @param from
65
     * @param tolist
70
     * @param tolist
66
     * @param subject
71
     * @param subject
67
     * @param message
72
     * @param message
68
     * @param res
73
     * @param res
69
     * @return
74
     * @return ReturnCode
70
     */
75
     */
71
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
76
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
-
 
77
    @WSDLDocumentation(value = "Send an email with attachment (simple).")
72
    public ReturnCode sendMailSimpleWithAttachment(@WebParam(name = "mailhost") HostConnection mailhost,
78
    public ReturnCode sendMailSimpleWithAttachment(@WebParam(name = "mailhost") HostConnection mailhost,
73
            @WebParam(name = "from") String from,
79
            @WebParam(name = "from") String from,
74
            @WebParam(name = "to") String tolist,
80
            @WebParam(name = "to") String tolist,
75
            @WebParam(name = "subject") String subject,
81
            @WebParam(name = "subject") String subject,
76
            @WebParam(name = "message") String message,
82
            @WebParam(name = "message") String message,
Line 88... Line 94...
88
     * @param charset
94
     * @param charset
89
     * @param message
95
     * @param message
90
     * @param res
96
     * @param res
91
     * @param ssl
97
     * @param ssl
92
     * @param tls
98
     * @param tls
93
     * @return
99
     * @return ReturnCode
94
     */
100
     */
95
    @WebMethod(operationName = "sendMail")
101
    @WebMethod(operationName = "sendMail")
-
 
102
    @WSDLDocumentation(value = "Send an email (advanced).")
96
    public ReturnCode sendMail(@WebParam(name = "mailhost") HostConnection mailhost,
103
    public ReturnCode sendMail(@WebParam(name = "mailhost") HostConnection mailhost,
97
            @WebParam(name = "from") String from,
104
            @WebParam(name = "from") String from,
98
            @WebParam(name = "to") String tolist,
105
            @WebParam(name = "to") String tolist,
99
            @WebParam(name = "cc") String cclist,
106
            @WebParam(name = "cc") String cclist,
100
            @WebParam(name = "bcc") String bcclist,
107
            @WebParam(name = "bcc") String bcclist,
Line 108... Line 115...
108
 
115
 
109
    /**
116
    /**
110
     *
117
     *
111
     * @param minutes
118
     * @param minutes
112
     * @param seconds
119
     * @param seconds
113
     * @return
120
     * @return ReturnCode
114
     */
121
     */
-
 
122
    @WebMethod(operationName = "sleep")
115
    @WebMethod(operationName = "sleep")
123
    @WSDLDocumentation(value = "Delay request response a specified duration.")
116
    public ReturnCode sleep(@WebParam(name = "minutes") int minutes,
124
    public ReturnCode sleep(@WebParam(name = "minutes") int minutes,
Line -... Line 125...
-
 
125
            @WebParam(name = "seconds") int seconds);
-
 
126
    
-
 
127
    
117
            @WebParam(name = "seconds") int seconds);
128
    /**
-
 
129
     * @return ReturnCode
118
    
130
     */
Line 119... Line 131...
119
    
131
    @WebMethod(operationName = "getInfo")