|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.mwi.mobileok.basic.DecodedContent org.w3c.mwi.mobileok.basic.RetrievalFailedContent
public class RetrievalFailedContent
Class that represents a resource that could not be retrieved because some of some network error.
An instance of this class must be returned by the DecodedContentFactory
being used when the resource could not be retrieved.
Constructor Summary | |
---|---|
RetrievalFailedContent(java.net.URI uri,
java.util.List<RetrievalElement> retrieved)
Creates a class instance bound to a URI. |
Method Summary | |
---|---|
boolean |
isValid()
Returns false because resources that cannot be retrieved
are de facto not valid. |
org.w3c.dom.Node |
toMokiNode(org.w3c.dom.Document document,
org.w3c.dom.Node parent)
Serializes the content to its moki representation as a DOM node. |
Methods inherited from class org.w3c.mwi.mobileok.basic.DecodedContent |
---|
addByteErrorMessages, addLineAndColumnMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RetrievalFailedContent(java.net.URI uri, java.util.List<RetrievalElement> retrieved) throws TestException
uri
- absolute URI of the resource.retrieved
- the retrieved representation of the resource.
TestException
- an unexpected error occurred while retrieving the resource.Method Detail |
---|
public boolean isValid()
false
because resources that cannot be retrieved
are de facto not valid.
isValid
in class DecodedContent
true
when the content is valid,
false
otherwise.public org.w3c.dom.Node toMokiNode(org.w3c.dom.Document document, org.w3c.dom.Node parent)
DecodedContent
toMokiNode
in class DecodedContent
document
- DOM document the created node should belong toparent
- DOM node to which the representation should be appended.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |