30,6 → 30,7 |
import org.apache.cxf.annotations.WSDLDocumentation; |
|
/** |
* Bundles various methods |
* |
* @author Brian Rosenberger, bru@brutex.de |
* @since 0.4.0 |
38,9 → 39,9 |
@WSDLDocumentation("Various service operations.") |
public interface MiscService { |
|
|
|
/** |
/** |
* Get IP address from host name. |
* |
* @param hostname |
* @return ReturnCode |
*/ |
49,78 → 50,10 |
public HostinfoType getHostinfo( |
@WebParam(name = "hostname") @XmlElement(minOccurs="1", nillable=false ) String hostname); |
|
|
/** |
* |
* @param mailhost |
* @param from |
* @param tolist |
* @param subject |
* @param message |
* @return ReturnCode |
*/ |
@WebMethod(operationName = "sendMailSimple") |
@WSDLDocumentation(value = "Send an email (simple).") |
public ReturnCode sendMailSimple( |
@WebParam(name = "mailhost") @XmlElement(minOccurs="1", nillable=false) HostConnection mailhost, |
@WebParam(name = "from") @XmlElement(minOccurs="1", nillable=false) String from, |
@WebParam(name = "to") @XmlElement(minOccurs="1", nillable=false) String tolist, |
@WebParam(name = "subject") String subject, |
@WebParam(name = "message") String message); |
|
/** |
* |
* @param mailhost |
* @param from |
* @param tolist |
* @param subject |
* @param message |
* @param res |
* @return ReturnCode |
*/ |
@WebMethod(operationName = "sendMailSimpleWithAttachment") |
@WSDLDocumentation(value = "Send an email with attachment (simple).") |
public ReturnCode sendMailSimpleWithAttachment( |
@WebParam(name = "mailhost") @XmlElement(minOccurs="1", nillable=false) HostConnection mailhost, |
@WebParam(name = "from") @XmlElement(minOccurs="1", nillable=false) String from, |
@WebParam(name = "to") @XmlElement(minOccurs="1", nillable=false) String tolist, |
@WebParam(name = "subject") String subject, |
@WebParam(name = "message") String message, |
@WebParam(name = "attachments") FileSetResource res); |
|
/** |
* |
* @param mailhost |
* @param from |
* @param tolist |
* @param cclist |
* @param bcclist |
* @param subject |
* @param mimetype |
* @param charset |
* @param message |
* @param res |
* @param ssl |
* @param tls |
* @return ReturnCode |
*/ |
@WebMethod(operationName = "sendMail") |
@WSDLDocumentation(value = "Send an email (advanced).") |
public ReturnCode sendMail( |
@WebParam(name = "mailhost") @XmlElement(minOccurs="1", nillable=false) HostConnection mailhost, |
@WebParam(name = "from") @XmlElement(minOccurs="1", nillable=false) String from, |
@WebParam(name = "to") @XmlElement(minOccurs="1", nillable=false) String tolist, |
@WebParam(name = "cc") String cclist, |
@WebParam(name = "bcc") String bcclist, |
@WebParam(name = "subject") String subject, |
@WebParam(name = "mimetype") MailMimeType mimetype, |
@WebParam(name = "charset") String charset, |
@WebParam(name = "message") String message, |
@WebParam(name = "attachments") FileSetResource res, |
@WebParam(name = "useSSL") boolean ssl, |
@WebParam(name = "useStartTLS") boolean tls); |
|
/** |
* |
* Delay execution for a given time. |
* |
* @param minutes |
* @param seconds |
* @return ReturnCode |