|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.capability.BaseCapabilityMap
Read only wrapper around a ClientEntry registry entry that implements the CapabilityMap interface
| Field Summary |
| Fields inherited from interface org.apache.jetspeed.capability.CapabilityMap |
HTML_ACTIVEX, HTML_CSS1, HTML_CSS2, HTML_CSSP, HTML_DOM, HTML_FORM, HTML_FRAME, HTML_IMAGE, HTML_JAVA, HTML_JAVA1_0, HTML_JAVA1_1, HTML_JAVA1_2, HTML_JSCRIPT, HTML_JSCRIPT1_0, HTML_JSCRIPT1_1, HTML_JSCRIPT1_2, HTML_TABLE, HTML_XML, HTML_XSL |
| Constructor Summary | |
protected |
BaseCapabilityMap(java.lang.String agent,
ClientEntry entry)
|
| Method Summary | |
java.lang.String |
getAgent()
Returns the user-agent string |
MimeType[] |
getMimeTypes()
Get the mime types that this CapabilityMap supports. |
java.lang.String |
getPreferredMediaType()
Returns the preferred media type for the current user-agent |
MimeType |
getPreferredType()
Returns the preferred MIME type for the current user-agent |
boolean |
hasCapability(int cap)
Checks to see if the current agent has the specified capability |
boolean |
hasCapability(java.lang.String capability)
Checks to see if the current agent has the specified capability |
java.util.Iterator |
listMediaTypes()
Returns an ordered list of supported media-types, from most preferred to least preferred |
boolean |
supportsMediaType(java.lang.String media)
Return true if this CapabilityMap supports the given media type |
boolean |
supportsMimeType(MimeType mimeType)
Return true if this CapabilityMap supports the given MimeType |
java.lang.String |
toString()
Create a map string representation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected BaseCapabilityMap(java.lang.String agent,
ClientEntry entry)
| Method Detail |
public MimeType getPreferredType()
CapabilityMap
getPreferredType in interface CapabilityMapCapabilityMap.getPreferredType()public java.lang.String getPreferredMediaType()
getPreferredMediaType in interface CapabilityMappublic java.util.Iterator listMediaTypes()
listMediaTypes in interface CapabilityMappublic java.lang.String getAgent()
CapabilityMap
getAgent in interface CapabilityMapCapabilityMap.getAgent()public boolean hasCapability(int cap)
CapabilityMap
hasCapability in interface CapabilityMapCapabilityMap.hasCapability(int)public boolean hasCapability(java.lang.String capability)
CapabilityMap
hasCapability in interface CapabilityMapCapabilityMap.hasCapability(int)public MimeType[] getMimeTypes()
CapabilityMap
getMimeTypes in interface CapabilityMapCapabilityMap.getMimeTypes()public boolean supportsMimeType(MimeType mimeType)
CapabilityMap
supportsMimeType in interface CapabilityMapCapabilityMap.supportsMimeType(org.apache.jetspeed.util.MimeType)public boolean supportsMediaType(java.lang.String media)
CapabilityMap
supportsMediaType in interface CapabilityMapmedia - the name of a media type registered in the
MediaType regsitry
CapabilityMap.supportsMimeType(org.apache.jetspeed.util.MimeType)public java.lang.String toString()
toString in interface CapabilityMap
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||