public class AbstractContentCapability extends AbstractCapability implements XContentCapability
XContentCapability.DEFAULT_DIGEST, DEFAULT_MIME_TYPE, DEFAULT_SIZE| Constructor and Description |
|---|
AbstractContentCapability(XResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
| Modifier and Type | Method and Description |
|---|---|
<T extends XCapability> |
adapt(Class<T> clazz)
Adapt this capability to another type
|
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()
Validate the capability
|
getAttribute, getAttributes, getDirective, getDirectives, getName, getNamespace, getPackageName, getResource, getType, getVersion, isSingleton, toStringgetAttachment, putAttachment, removeAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResourcegetAttachment, putAttachment, removeAttachmentgetAttribute, getAttributesgetDirective, getDirectivespublic String getMimeType()
XContentCapabilitygetMimeType in interface XContentCapabilitypublic String getDigest()
XContentCapabilitygetDigest in interface XContentCapabilitypublic String getContentURL()
XContentCapabilitygetContentURL in interface XContentCapabilitypublic Long getSize()
XContentCapabilitygetSize in interface XContentCapabilitypublic void validate()
XCapabilityvalidate in interface XCapabilityvalidate in class AbstractCapabilitypublic <T extends XCapability> T adapt(Class<T> clazz)
XCapabilityadapt in interface XCapabilityadapt in class AbstractCapabilityCopyright © 2016 JBoss by Red Hat. All rights reserved.