@Immutable @Deprecated public class Resource extends Object
| Constructor | Description |
|---|---|
Resource(String content,
javax.mail.internet.ContentType contentType) |
Deprecated.
Creates a new resource with optional associated content type.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getContent() |
Deprecated.
Gets the content of this resource.
|
javax.mail.internet.ContentType |
getContentType() |
Deprecated.
Gets the content type of this resource.
|
public Resource(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 String getContent()
public javax.mail.internet.ContentType getContentType()
null if not specified.Copyright © 2018 Connect2id Ltd.. All rights reserved.