@Immutable public class Resource extends java.lang.Object
Constructor and Description |
---|
Resource(java.lang.String content,
javax.mail.internet.ContentType contentType)
Creates a new resource with optional associated content type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Gets the content of this resource.
|
javax.mail.internet.ContentType |
getContentType()
Gets the content type of this resource.
|
public Resource(java.lang.String content, javax.mail.internet.ContentType contentType)
content
- The resource content, empty string if none. Must
not be null
.contentType
- The resource content type, null
if not
specified.public java.lang.String getContent()
public javax.mail.internet.ContentType getContentType()
null
if not specified.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.