| Constructor and Description |
|---|
FailedResource(String uri,
XPathException error) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Get the media type (MIME type) of the resource if known
|
XPathException |
getError()
Get the underlying error
|
Item |
getItem(XPathContext context)
Get an XDM Item holding the contents of this resource.
|
String |
getResourceURI()
Get a URI that identifies this resource
|
public FailedResource(String uri, XPathException error)
public String getContentType()
getContentType in interface Resourcepublic String getResourceURI()
getResourceURI in interface Resourcepublic Item getItem(XPathContext context) throws XPathException
getItem in interface Resourcecontext - the XPath evaluation contextXPathException - if a failure occurs materializing the resourcepublic XPathException getError()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.