|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.portlet.container.info.ContentTypes
This object holds the content type and mode capabilities.
Todo : use the media type object ?
Field Summary | |
protected java.util.Set |
allModes
|
protected java.util.Map |
allTypeToPortletModes
Maps MIME Type (String) -> Modes (Set), including multiple MIME Types ("*", "* / *", "type / *"). |
protected boolean |
isStarted
|
protected ContentTypesMetaData |
metadata
|
protected java.util.Map |
singleTypeToPortletModes
Maps MIME Type (String) -> Modes (Set), excluding multiple MIME Types ("*", "* / *", "type / *"). |
Constructor Summary | |
ContentTypes()
|
Method Summary | |
java.util.Collection |
getAllContentTypes()
Return all content types. |
java.util.Collection |
getAllModes()
Return all modes. |
ContentTypesMetaData |
getMetadata()
|
java.util.Set |
getSupportedModes(java.lang.String contentType)
Return all the supported modes for this content type. |
boolean |
isContentTypeSupported(java.lang.String contentType)
Return true if the content type is supported. |
boolean |
isModeSupported(Mode mode)
Return true if the mode is supported |
boolean |
isSupported(Mode mode,
java.lang.String contentType)
Return true if the given content type is supported for the given mode. |
void |
setMetadata(ContentTypesMetaData metadata)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.util.Map singleTypeToPortletModes
protected final java.util.Map allTypeToPortletModes
protected final java.util.Set allModes
protected ContentTypesMetaData metadata
protected boolean isStarted
Constructor Detail |
public ContentTypes()
Method Detail |
public ContentTypesMetaData getMetadata()
public void setMetadata(ContentTypesMetaData metadata)
public void start() throws java.lang.Exception
java.lang.Exception
public void stop()
public java.util.Collection getAllModes()
public java.util.Collection getAllContentTypes()
public boolean isModeSupported(Mode mode)
java.lang.IllegalArgumentException
- if the mode is nullpublic java.util.Set getSupportedModes(java.lang.String contentType)
java.lang.IllegalArgumentException
- if the content type is nullpublic boolean isContentTypeSupported(java.lang.String contentType)
java.lang.IllegalArgumentException
- if the content type is nullpublic boolean isSupported(Mode mode, java.lang.String contentType)
java.lang.IllegalArgumentException
- if the content type or the mode is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |