@Immutable @Deprecated public class Resource extends java.lang.Object
| Constructor and Description |
|---|
Resource(java.lang.String content,
javax.mail.internet.ContentType contentType)
Deprecated.
Creates a new resource with optional associated content type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Deprecated.
Gets the content of this resource.
|
javax.mail.internet.ContentType |
getContentType()
Deprecated.
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 © 2016 Connect2id Ltd.. All Rights Reserved.