Subversion Repositories XServices

Rev

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

Rev 83 Rev 85
Line 28... Line 28...
28
import org.apache.cxf.aegis.type.java5.XmlElement;
28
import org.apache.cxf.aegis.type.java5.XmlElement;
29
import org.apache.cxf.aegis.type.java5.XmlReturnType;
29
import org.apache.cxf.aegis.type.java5.XmlReturnType;
30
import org.apache.cxf.annotations.WSDLDocumentation;
30
import org.apache.cxf.annotations.WSDLDocumentation;
Line 31... Line 31...
31
 
31
 
-
 
32
/**
32
/**
33
 * Bundles various methods
33
 *
34
 *
34
 * @author Brian Rosenberger, bru@brutex.de
35
 * @author Brian Rosenberger, bru@brutex.de
35
 * @since 0.4.0
36
 * @since 0.4.0
36
 */
37
 */
37
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
38
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES)
38
@WSDLDocumentation("Various service operations.")
39
@WSDLDocumentation("Various service operations.")
Line 39... Line -...
39
public interface MiscService {
-
 
40
 
40
public interface MiscService {
-
 
41
 
41
    
42
	/**
42
    
43
	 * Get IP address from host name.
43
    /**
44
	 * 
44
     * @param hostname
45
     * @param hostname
45
     * @return ReturnCode
46
     * @return ReturnCode
46
     */
47
     */
47
    @WebMethod(operationName = "getHostinfo")
48
    @WebMethod(operationName = "getHostinfo")
48
    @WSDLDocumentation(value = "Get information about a host.")
49
    @WSDLDocumentation(value = "Get information about a host.")
Line -... Line 50...
-
 
50
    public HostinfoType getHostinfo(
49
    public HostinfoType getHostinfo(
51
    		@WebParam(name = "hostname") @XmlElement(minOccurs="1", nillable=false ) String hostname);
50
    		@WebParam(name = "hostname") @XmlElement(minOccurs="1", nillable=false ) String hostname);
-
 
51
 
-
 
52
    /**
-
 
53
     *
-
 
54
     * @param mailhost
-
 
55
     * @param from
-
 
56
     * @param tolist
-
 
57
     * @param subject
-
 
58
     * @param message
-
 
59
     * @return ReturnCode
-
 
60
     */
-
 
61
    @WebMethod(operationName = "sendMailSimple")
-
 
62
    @WSDLDocumentation(value = "Send an email (simple).")
-
 
63
    public ReturnCode sendMailSimple(
-
 
64
    		@WebParam(name = "mailhost") @XmlElement(minOccurs="1", nillable=false) HostConnection mailhost,
-
 
65
            @WebParam(name = "from") @XmlElement(minOccurs="1", nillable=false) String from,
-
 
66
            @WebParam(name = "to") @XmlElement(minOccurs="1", nillable=false) String tolist,
-
 
67
            @WebParam(name = "subject") String subject,
-
 
68
            @WebParam(name = "message") String message);
-
 
69
 
-
 
70
    /**
-
 
71
     *
-
 
72
     * @param mailhost
-
 
73
     * @param from
-
 
74
     * @param tolist
-
 
75
     * @param subject
-
 
76
     * @param message
-
 
77
     * @param res
-
 
78
     * @return ReturnCode
-
 
79
     */
-
 
80
    @WebMethod(operationName = "sendMailSimpleWithAttachment")
-
 
81
    @WSDLDocumentation(value = "Send an email with attachment (simple).")
-
 
82
    public ReturnCode sendMailSimpleWithAttachment(
-
 
83
    		@WebParam(name = "mailhost") @XmlElement(minOccurs="1", nillable=false) HostConnection mailhost,
-
 
84
            @WebParam(name = "from") @XmlElement(minOccurs="1", nillable=false) String from,
-
 
85
            @WebParam(name = "to") @XmlElement(minOccurs="1", nillable=false) String tolist,
-
 
86
            @WebParam(name = "subject") String subject,
-
 
87
            @WebParam(name = "message") String message,
-
 
88
            @WebParam(name = "attachments") FileSetResource res);
-
 
89
 
-
 
90
    /**
-
 
91
     *
-
 
92
     * @param mailhost
-
 
93
     * @param from
-
 
94
     * @param tolist
-
 
95
     * @param cclist
-
 
96
     * @param bcclist
-
 
97
     * @param subject
-
 
98
     * @param mimetype
-
 
99
     * @param charset
-
 
100
     * @param message
-
 
101
     * @param res
-
 
102
     * @param ssl
-
 
103
     * @param tls
52
 
104
     * @return ReturnCode
-
 
105
     */
-
 
106
    @WebMethod(operationName = "sendMail")
-
 
107
    @WSDLDocumentation(value = "Send an email (advanced).")
-
 
108
    public ReturnCode sendMail(
-
 
109
    		@WebParam(name = "mailhost") @XmlElement(minOccurs="1", nillable=false) HostConnection mailhost,
-
 
110
            @WebParam(name = "from") @XmlElement(minOccurs="1", nillable=false) String from,
-
 
111
            @WebParam(name = "to") @XmlElement(minOccurs="1", nillable=false) String tolist,
-
 
112
            @WebParam(name = "cc") String cclist,
-
 
113
            @WebParam(name = "bcc") String bcclist,
-
 
114
            @WebParam(name = "subject") String subject,
-
 
115
            @WebParam(name = "mimetype") MailMimeType mimetype,
-
 
116
            @WebParam(name = "charset") String charset,
-
 
117
            @WebParam(name = "message") String message,
-
 
118
            @WebParam(name = "attachments") FileSetResource res,
-
 
119
            @WebParam(name = "useSSL") boolean ssl,
-
 
120
            @WebParam(name = "useStartTLS") boolean tls);
53
    
121
 
54
    /**
122
    /**
55
     * Delay execution for a given time.
123
     *
56
     * 
124
     * @param minutes
57
     * @param minutes
125
     * @param seconds
58
     * @param seconds