public class ExternalTextResourcePrototype extends Object implements ExternalTextResource
Constructor and Description |
---|
ExternalTextResourcePrototype(String name,
SafeUri url,
TextResource[] cache,
int index) |
ExternalTextResourcePrototype(String name,
SafeUri url,
TextResource[] cache,
int index,
String md5Hash) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the function within the ClientBundle used to create the
ResourcePrototype.
|
void |
getText(ResourceCallback<TextResource> callback)
Possibly fire off an HTTPRequest for the text resource.
|
public ExternalTextResourcePrototype(String name, SafeUri url, TextResource[] cache, int index)
public ExternalTextResourcePrototype(String name, SafeUri url, TextResource[] cache, int index, String md5Hash)
public String getName()
ResourcePrototype
getName
in interface ResourcePrototype
public void getText(ResourceCallback<TextResource> callback) throws ResourceException
getText
in interface ExternalTextResource
ResourceException
- if the resource request cannot be initiated, e.g. due to an invalid
url or an AJAX security error (same origin violation)Copyright © 2018. All rights reserved.