org.jboss.media.entity
Class MediaEntityDTO
java.lang.Object
org.jboss.media.entity.MediaEntityDTO
- All Implemented Interfaces:
- java.io.Serializable
- public class MediaEntityDTO
- extends java.lang.Object
- implements java.io.Serializable
Data Transfer Object for an EntityMediaLocal object.
- See Also:
- Serialized Form
Constructor Summary |
MediaEntityDTO()
Default constructor. |
MediaEntityDTO(byte[] content,
java.net.URL location,
java.lang.String description,
java.lang.String name,
java.lang.String mimeType)
Constructor with all properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaEntityDTO
public MediaEntityDTO()
- Default constructor.
MediaEntityDTO
public MediaEntityDTO(byte[] content,
java.net.URL location,
java.lang.String description,
java.lang.String name,
java.lang.String mimeType)
- Constructor with all properties.
- Parameters:
content
- content.location
- location.description
- description.name
- name.mimeType
- MIME type.
getContent
public byte[] getContent()
- Returns:
- Returns the content.
setContent
public void setContent(byte[] content)
- Parameters:
content
- The content to set.
getDescription
public java.lang.String getDescription()
- Returns:
- Returns the description.
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- The description to set.
getLocation
public java.net.URL getLocation()
- Returns:
- Returns the location.
setLocation
public void setLocation(java.net.URL location)
- Parameters:
location
- The location to set.
getMimeType
public java.lang.String getMimeType()
- Returns:
- Returns the mimeType.
setMimeType
public void setMimeType(java.lang.String mimeType)
- Parameters:
mimeType
- The mimeType to set.
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.