|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.mwi.mobileok.basic.MobileOKDecodedContentFactory
public class MobileOKDecodedContentFactory
mobileOK decoded content factory implementation.
The factory can create the following DecodedContent instances:
XhtmlContent for XHTML Web pagesGifImageContent for image/gif imagesJpegImageContent for image/jpeg imagesNotSupportedImageContent for images of other typesCssContent for stylesheet resourcesNotSupportedContent for non supported contentThe decision to create a given specific instance is triggered by the current context (e.g. primary resources are supposed to be XHTML pages in mobileOK), and by the received content-type (e.g. for images)
| Constructor Summary | |
|---|---|
MobileOKDecodedContentFactory()
Creates an instance of the factory. |
|
| Method Summary | |
|---|---|
DecodedContent |
decodeContent(java.net.URI uri,
java.util.List<RetrievalElement> retrieved,
ResourceContext resourceContext)
Creates an instance of a Resource based on the given parameters. |
boolean |
isContentSupported(java.lang.String contentType,
ResourceContext resourceContext)
Returns true when the factory is able to create content
that match the given content-type under the given context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MobileOKDecodedContentFactory()
| Method Detail |
|---|
public DecodedContent decodeContent(java.net.URI uri,
java.util.List<RetrievalElement> retrieved,
ResourceContext resourceContext)
throws TestException
DecodedContentFactoryResource based on the given parameters.
decodeContent in interface DecodedContentFactoryuri - absolute URI of the resource.retrieved - the retrieved representation of the resource.resourceContext - the context that gave birth to the resource.
null.
TestException - an unexpected error occurred while retrieving the resource.
public boolean isContentSupported(java.lang.String contentType,
ResourceContext resourceContext)
DecodedContentFactorytrue when the factory is able to create content
that match the given content-type under the given context.
isContentSupported in interface DecodedContentFactorycontentType - Content-Type to checkresourceContext - Context under which the resource would be created
true when the content-type is supported,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||