Subversion Repositories XServices

Rev

Rev 23 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23 Rev 54
1
/*
1
/*
2
 *   Copyright 2010 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2010 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with 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
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
package net.brutex.xservices.ws;
16
package net.brutex.xservices.ws;
17
 
17
 
18
import javax.jws.WebMethod;
18
import javax.jws.WebMethod;
19
import javax.jws.WebParam;
19
import javax.jws.WebParam;
20
import javax.jws.WebService;
20
import javax.jws.WebService;
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;
26
import org.apache.cxf.annotations.WSDLDocumentation;
27
 
27
 
28
/**
28
/**
29
 *
29
 *
30
 * @author Brian Rosenberger, bru@brutex.de
30
 * @author Brian Rosenberger, bru@brutex.de
31
 */
31
 */
32
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
32
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
33
public interface MiscService {
33
public interface MiscService {
34
 
34
 
35
    
35
    
36
    
36
    
37
    /**
37
    /**
38
     * @param hostname
38
     * @param hostname
39
     * @return
39
     * @return
40
     */
40
     */
41
    @WebMethod(operationName = "getHostinfo")
41
    @WebMethod(operationName = "getHostinfo")
42
    public ReturnCode getHostinfo(@WebParam(name = "hostname") String hostname);
42
    public ReturnCode getHostinfo(@WebParam(name = "hostname") String hostname);
43
 
43
 
44
    /**
44
    /**
45
     *
45
     *
46
     * @param mailhost
46
     * @param mailhost
47
     * @param from
47
     * @param from
48
     * @param tolist
48
     * @param tolist
49
     * @param subject
49
     * @param subject
50
     * @param message
50
     * @param message
51
     * @return
51
     * @return
52
     */
52
     */
53
    @WebMethod(operationName = "sendMailSimple")
53
    @WebMethod(operationName = "sendMailSimple")
54
    public ReturnCode sendMailSimple(@WebParam(name = "mailhost") HostConnection mailhost,
54
    public ReturnCode sendMailSimple(@WebParam(name = "mailhost") HostConnection mailhost,
55
            @WebParam(name = "from") String from,
55
            @WebParam(name = "from") String from,
56
            @WebParam(name = "to") String tolist,
56
            @WebParam(name = "to") String tolist,
57
            @WebParam(name = "subject") String subject,
57
            @WebParam(name = "subject") String subject,
58
            @WebParam(name = "message") String message);
58
            @WebParam(name = "message") String message);
59
 
59
 
60
    /**
60
    /**
61
     *
61
     *
62
     * @param mailhost
62
     * @param mailhost
63
     * @param from
63
     * @param from
64
     * @param tolist
64
     * @param tolist
65
     * @param subject
65
     * @param subject
66
     * @param message
66
     * @param message
67
     * @param res
67
     * @param res
68
     * @return
68
     * @return
69
     */
69
     */
70
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
70
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
71
    public ReturnCode sendMailSimpleWithAttachment(@WebParam(name = "mailhost") HostConnection mailhost,
71
    public ReturnCode sendMailSimpleWithAttachment(@WebParam(name = "mailhost") HostConnection mailhost,
72
            @WebParam(name = "from") String from,
72
            @WebParam(name = "from") String from,
73
            @WebParam(name = "to") String tolist,
73
            @WebParam(name = "to") String tolist,
74
            @WebParam(name = "subject") String subject,
74
            @WebParam(name = "subject") String subject,
75
            @WebParam(name = "message") String message,
75
            @WebParam(name = "message") String message,
76
            @WebParam(name = "attachments") FileSetResource res);
76
            @WebParam(name = "attachments") FileSetResource res);
77
 
77
 
78
    /**
78
    /**
79
     *
79
     *
80
     * @param mailhost
80
     * @param mailhost
81
     * @param from
81
     * @param from
82
     * @param tolist
82
     * @param tolist
83
     * @param cclist
83
     * @param cclist
84
     * @param bcclist
84
     * @param bcclist
85
     * @param subject
85
     * @param subject
86
     * @param mimetype
86
     * @param mimetype
87
     * @param charset
87
     * @param charset
88
     * @param message
88
     * @param message
89
     * @param res
89
     * @param res
90
     * @param ssl
90
     * @param ssl
91
     * @param tls
91
     * @param tls
92
     * @return
92
     * @return
93
     */
93
     */
94
    @WebMethod(operationName = "sendMail")
94
    @WebMethod(operationName = "sendMail")
95
    public ReturnCode sendMail(@WebParam(name = "mailhost") HostConnection mailhost,
95
    public ReturnCode sendMail(@WebParam(name = "mailhost") HostConnection mailhost,
96
            @WebParam(name = "from") String from,
96
            @WebParam(name = "from") String from,
97
            @WebParam(name = "to") String tolist,
97
            @WebParam(name = "to") String tolist,
98
            @WebParam(name = "cc") String cclist,
98
            @WebParam(name = "cc") String cclist,
99
            @WebParam(name = "bcc") String bcclist,
99
            @WebParam(name = "bcc") String bcclist,
100
            @WebParam(name = "subject") String subject,
100
            @WebParam(name = "subject") String subject,
101
            @WebParam(name = "mimetype") MailMimeType mimetype,
101
            @WebParam(name = "mimetype") MailMimeType mimetype,
102
            @WebParam(name = "charset") String charset,
102
            @WebParam(name = "charset") String charset,
103
            @WebParam(name = "message") String message,
103
            @WebParam(name = "message") String message,
104
            @WebParam(name = "attachments") FileSetResource res,
104
            @WebParam(name = "attachments") FileSetResource res,
105
            @WebParam(name = "useSSL") boolean ssl,
105
            @WebParam(name = "useSSL") boolean ssl,
106
            @WebParam(name = "useStartTLS") boolean tls);
106
            @WebParam(name = "useStartTLS") boolean tls);
107
 
107
 
108
    /**
108
    /**
109
     *
109
     *
110
     * @param minutes
110
     * @param minutes
111
     * @param seconds
111
     * @param seconds
112
     * @return
112
     * @return
113
     */
113
     */
114
    @WebMethod(operationName = "sleep")
114
    @WebMethod(operationName = "sleep")
115
    public ReturnCode sleep(@WebParam(name = "minutes") int minutes,
115
    public ReturnCode sleep(@WebParam(name = "minutes") int minutes,
116
            @WebParam(name = "seconds") int seconds);
116
            @WebParam(name = "seconds") int seconds);
-
 
117
    
-
 
118
    
-
 
119
    @WebMethod(operationName = "getInfo")
-
 
120
    public ReturnCode getInfo();
-
 
121
    
117
}
122
}