public interface IContentProvider
Modifier and Type | Method and Description |
---|---|
Reader |
getContent()
Returns content for the previously set content type.
|
String |
getContentType()
Returns currently set content type or default one if
setContentType(java.lang.String)
has not been called. |
Set<String> |
getContentTypes()
Returns all supported content types by this provider (widget).
|
boolean |
isContentTypeSupported(String mimeType)
Checks if the given content type is supported by this content provider
|
void |
setContentType(String mimeType)
Sets the current content type for the provider (widget).
|
Set<String> getContentTypes()
Set
boolean isContentTypeSupported(String mimeType)
mimeType
- the content type you'd like to check is it supported or notvoid setContentType(String mimeType)
getContent()
will return the content of this content type.
If the content type is not supported the exception will not be thrown and the content will
be null
.mimeType
- the content type you are going to get via next call to getContent()
String getContentType()
setContentType(java.lang.String)
has not been called.Reader getContent() throws IOException, PortalException
setContentType(java.lang.String)
has not been set before, the default content type is be used.IOException
PortalException
Reader
,
setContentType(java.lang.String)