public class InternalGadgetDescriptor extends BaseGadgetDescriptor implements GadgetDeclaration
Modifier and Type | Field and Description |
---|---|
static String |
HTTP |
static String |
HTTP_SEPARATOR |
static String |
URL_SEPARATOR |
Constructor and Description |
---|
InternalGadgetDescriptor() |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.Bundle |
getBundle() |
String |
getCategory() |
ComponentName |
getComponentName() |
String |
getDescription() |
String |
getDirectory() |
boolean |
getDisabled() |
String |
getEntryPoint() |
URL |
getGadgetDefinition() |
String |
getIcon() |
String |
getIconUrl() |
String |
getLabel() |
String |
getMountPoint() |
String |
getName() |
String |
getPublicGadgetDefinition()
Returns the public URL of the gadget spec.
|
URL |
getResource(String resourcePath) |
InputStream |
getResourceAsStream(String resourcePath) |
String |
getScreenshot() |
String |
getThumbnail() |
StringBuilder |
getUrlPrefix(boolean relativeUrl) |
boolean |
isExternal() |
void |
setBundle(org.osgi.framework.Bundle bundle) |
void |
setComponentName(ComponentName name) |
void |
setEntryPoint(String entryPoint) |
getAuthor, getGadgetSpec, getTitle, getTitle
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthor, getGadgetSpec, getTitle, getTitle
public static final String HTTP
public static final String HTTP_SEPARATOR
public static final String URL_SEPARATOR
public String getName()
getName
in interface GadgetDeclaration
public String getLabel()
public boolean getDisabled()
getDisabled
in interface GadgetDeclaration
public String getIcon()
public final String getMountPoint()
public final String getCategory()
getCategory
in interface GadgetDeclaration
public final void setBundle(org.osgi.framework.Bundle bundle)
public final org.osgi.framework.Bundle getBundle()
public final void setComponentName(ComponentName name)
public final ComponentName getComponentName()
public final void setEntryPoint(String entryPoint)
public final String getEntryPoint()
public String getDirectory()
public String getIconUrl()
getIconUrl
in interface GadgetDeclaration
public StringBuilder getUrlPrefix(boolean relativeUrl)
public InputStream getResourceAsStream(String resourcePath) throws IOException
getResourceAsStream
in interface GadgetDeclaration
IOException
public URL getResource(String resourcePath)
getResource
in interface GadgetDeclaration
public URL getGadgetDefinition() throws MalformedURLException
getGadgetDefinition
in interface GadgetDeclaration
MalformedURLException
public String getPublicGadgetDefinition() throws MalformedURLException
GadgetDeclaration
getPublicGadgetDefinition
in interface GadgetDeclaration
getPublicGadgetDefinition
in class BaseGadgetDescriptor
MalformedURLException
public String getDescription()
getDescription
in interface GadgetDeclaration
public boolean isExternal()
isExternal
in interface GadgetDeclaration
public String getThumbnail()
getThumbnail
in interface GadgetDeclaration
getThumbnail
in class BaseGadgetDescriptor
public String getScreenshot()
getScreenshot
in interface GadgetDeclaration
getScreenshot
in class BaseGadgetDescriptor
Copyright © 2011 Nuxeo SA. All Rights Reserved.