git-svn-id: https://brutex.net/svn/xservices/trunk@81 e7e49efb-446e-492e-b9ec-fcafc1997a86
This commit is contained in:
		
							parent
							
								
									c0032229d4
								
							
						
					
					
						commit
						ffd4df963b
					
				@ -20,20 +20,32 @@ import java.io.File;
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
 | 
			
		||||
import javax.activation.DataHandler;
 | 
			
		||||
import javax.xml.bind.annotation.XmlElement;
 | 
			
		||||
import javax.xml.bind.annotation.XmlMimeType;
 | 
			
		||||
 | 
			
		||||
import net.brutex.xservices.util.BrutexNamespaces;
 | 
			
		||||
 | 
			
		||||
import org.apache.cxf.aegis.type.java5.XmlElement;
 | 
			
		||||
import org.apache.cxf.aegis.type.java5.XmlType;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Represents a single file based attachment type.
 | 
			
		||||
 * @author Brian Rosenberger, bru@brutex.de
 | 
			
		||||
 * @since 0.4.0
 | 
			
		||||
 */
 | 
			
		||||
@XmlType(name=AttachmentType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
 | 
			
		||||
public class AttachmentType {
 | 
			
		||||
 | 
			
		||||
	public static final String XML_NAME="attachment";
 | 
			
		||||
	private DataHandler content;
 | 
			
		||||
	private String filename = null;
 | 
			
		||||
 | 
			
		||||
	@XmlMimeType("application/octet-stream")
 | 
			
		||||
	@XmlElement(minOccurs="1")
 | 
			
		||||
	public void setContent(DataHandler content) {
 | 
			
		||||
		this.content = content;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@XmlMimeType("application/octet-stream")
 | 
			
		||||
	@XmlElement(required=true)
 | 
			
		||||
	public DataHandler getContent() {
 | 
			
		||||
		return content;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -22,13 +22,17 @@ import org.apache.cxf.aegis.type.java5.XmlType;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * Host information.
 | 
			
		||||
 * @author Brian Rosenberger, bru@brutex.de
 | 
			
		||||
 */
 | 
			
		||||
@XmlType(name=HostinfoType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
 | 
			
		||||
public class HostinfoType {
 | 
			
		||||
 | 
			
		||||
	public final static String XML_NAME="hostinfo";
 | 
			
		||||
    private String name;
 | 
			
		||||
    private String domain;
 | 
			
		||||
    private String ip4;
 | 
			
		||||
    private String ip6;
 | 
			
		||||
        
 | 
			
		||||
	/**
 | 
			
		||||
	 * Create a new HostinfoType. 
 | 
			
		||||
@ -51,12 +55,6 @@ public class HostinfoType {
 | 
			
		||||
		this.ip6 = ip6;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    private String name;
 | 
			
		||||
    private String domain;
 | 
			
		||||
    private String ip4;
 | 
			
		||||
    private String ip6;
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
	/**
 | 
			
		||||
	 * Get the host name.
 | 
			
		||||
	 * 
 | 
			
		||||
 | 
			
		||||
@ -24,6 +24,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
 | 
			
		||||
 * email body.
 | 
			
		||||
 *
 | 
			
		||||
 * @author Brian Rosenberger, bru@brutex.de
 | 
			
		||||
 * @since 0.4.0
 | 
			
		||||
 */
 | 
			
		||||
@XmlEnum(value = String.class)
 | 
			
		||||
public enum MailMimeType {
 | 
			
		||||
 | 
			
		||||
@ -27,7 +27,6 @@ import net.brutex.xservices.util.BrutexNamespaces;
 | 
			
		||||
 | 
			
		||||
import org.apache.cxf.aegis.type.java5.XmlElement;
 | 
			
		||||
import org.apache.cxf.annotations.WSDLDocumentation;
 | 
			
		||||
import org.apache.cxf.annotations.WSDLDocumentationCollection;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user