public class AbstractRepositoryCapability extends org.jboss.osgi.resolver.spi.AbstractCapability implements XContentCapability
XContentCapability.DEFAULT_DIGEST, DEFAULT_MIME_TYPE, DEFAULT_SIZE| Constructor and Description |
|---|
AbstractRepositoryCapability(org.jboss.osgi.resolver.XResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.jboss.osgi.resolver.XCapability> |
adapt(Class<T> clazz) |
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() |
getAttribute, getAttributes, getDirective, getDirectives, getName, getNamespace, getPackageName, getResource, getType, getVersion, isSingleton, toStringgetAttachment, putAttachment, removeAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttachment, putAttachment, removeAttachmentgetAttribute, getAttributespublic 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()
validate in interface org.jboss.osgi.resolver.XCapabilityvalidate in class org.jboss.osgi.resolver.spi.AbstractCapabilitypublic <T extends org.jboss.osgi.resolver.XCapability> T adapt(Class<T> clazz)
adapt in interface org.jboss.osgi.resolver.XCapabilityadapt in class org.jboss.osgi.resolver.spi.AbstractCapabilityCopyright © 2013 JBoss by Red Hat. All rights reserved.