@Component(value="ui_UrlResource") @Scope(value="prototype") public class UrlResourceImpl extends AbstractResource implements WebResource, UrlResource
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mimeType |
protected java.net.URL |
url |
hasSource, resource, resourceUpdateHandler
Constructor and Description |
---|
UrlResourceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
createResource() |
java.lang.String |
getMimeType() |
java.net.URL |
getUrl() |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type of the resource.
|
UrlResource |
setUrl(java.net.URL url) |
fireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResource, hasSource
public UrlResource setUrl(java.net.URL url)
setUrl
in interface UrlResource
public java.net.URL getUrl()
getUrl
in interface UrlResource
protected void createResource()
createResource
in class AbstractResource
public void setMimeType(java.lang.String mimeType)
ResourceView.HasMimeType
setMimeType
in interface ResourceView.HasMimeType
mimeType
- the MIME type to be setpublic java.lang.String getMimeType()
getMimeType
in interface ResourceView.HasMimeType