Subversion Repositories XServices

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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