|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.openid.connect.sdk.util.Resource
@Immutable public final class Resource
Resource with optional associated content type. This class is immutable.
Constructor Summary | |
---|---|
Resource(String content,
javax.mail.internet.ContentType contentType)
Creates a new resource with optional associated content type. |
Method Summary | |
---|---|
String |
getContent()
Gets the content of this resource. |
javax.mail.internet.ContentType |
getContentType()
Gets the content type of this resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public String getContent()
public javax.mail.internet.ContentType getContentType()
null
if not specified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |