public class DojoHttpTransport.LoaderExtensionResourceFactory extends Object implements IResourceFactory
AbstractHttpTransport.LoaderExtensionResource
for the dojo http
transport when the loader extension resource URI is requestedConstructor and Description |
---|
DojoHttpTransport.LoaderExtensionResourceFactory() |
public DojoHttpTransport.LoaderExtensionResourceFactory()
public boolean handles(URI uri)
handles
in interface IResourceFactory
public IResource newResource(URI uri)
IResourceFactory
IResource
object for the specified URI. This method
must not fail due to non-existence of the resource specified by the URL.
If the resource doesn't exist, a valid resource object that returns
exists() == false
and throws an IOException for other
methods that require existence of the resource should be returned.
This method is free to convert the provided URI as needed so that the URI
returned by IResource.getURI()
for the returned object does not
need to be the same as the provided URI. For example, the factory may
convert a bundleentry
URI into a file
uri, or
else it may need to convert a URI using a pseudo scheme such as
namedbundleentry
into a URI that is supported by the
platform.
newResource
in interface IResourceFactory
uri
- The resource URI. The concrete implementation of the returned
type is determined by the URI scheme.IResource
object for the specified URI. The returned
object MUST be serialiable.Copyright © 2011-2015 IBM. All Rights Reserved.