public class AbstractContentCapability extends AbstractCapability implements ContentCapability
ContentCapability.DEFAULT_DIGEST, DEFAULT_MIME_TYPE, DEFAULT_SIZE| Constructor and Description |
|---|
AbstractContentCapability(AbstractResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContentStream()
The stream to the content bytes.
|
URL |
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, waitgetAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResourcepublic String getMimeType()
ContentCapabilitygetMimeType in interface ContentCapabilitypublic String getDigest()
ContentCapabilitygetDigest in interface ContentCapabilitypublic InputStream getContentStream()
ContentCapabilitygetContentStream in interface ContentCapabilitypublic URL getContentURL()
ContentCapabilitygetContentURL in interface ContentCapabilitypublic Long getSize()
ContentCapabilitygetSize in interface ContentCapabilitypublic void validate()
validate in class AbstractCapabilityCopyright © 2014 JBoss by Red Hat. All Rights Reserved.