public class AbstractContentCapability extends org.jboss.gravia.resource.spi.AbstractCapability implements ContentCapability
ContentCapability.DEFAULT_DIGEST, DEFAULT_MIME_TYPE, DEFAULT_SIZE| Constructor and Description |
|---|
AbstractContentCapability(org.jboss.gravia.resource.spi.AbstractResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentURL()
The URL to the bytes.
|
String |
getDigest()
The SHA-256 hex encoded digest for this resource
|
String |
getMimeType()
An IANA defined MIME type for the format of this content
|
Long |
getSize()
The size of the resource in bytes as it will be read from the URL
|
void |
validate() |
adapt, getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, getVersion, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic String getMimeType()
ContentCapabilitygetMimeType in interface ContentCapabilitypublic String getDigest()
ContentCapabilitygetDigest in interface ContentCapabilitypublic String getContentURL()
ContentCapabilitygetContentURL in interface ContentCapabilitypublic Long getSize()
ContentCapabilitygetSize in interface ContentCapabilitypublic void validate()
validate in class org.jboss.gravia.resource.spi.AbstractCapabilityCopyright © 2013 JBoss by Red Hat. All Rights Reserved.