public class EmbeddedResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
filename
The filename of this resource.
|
protected String |
originalText
The original (unparsed) embedded link text.
|
protected String |
page
The confluence page to which the resource is attached.
|
protected EmbeddedResourceParser |
parser
Embedded resource parser, available for accessing the original embedded text.
|
protected Properties |
properties
The resource properties
|
protected String |
space
The confluence space to which the resource is attached.
|
protected String |
type
The mime type of this resource.
|
protected String |
url
The unparsed reference to the embedded resource.
|
| Constructor and Description |
|---|
EmbeddedResource(EmbeddedResourceParser parser)
Create a new EmbeddedResource.
|
EmbeddedResource(String originalText)
Create a new Embedded resource using embedded resource text.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename() |
String |
getOriginalLinkText()
Retrieve the original embedded resource text.
|
String |
getPage()
The name of the page this resource is attached to.
|
Properties |
getProperties() |
String |
getSpace()
The name of the space this resource is attached to.
|
String |
getType()
Retrieve the resource mime type, or null if the type is unknown.
|
String |
getUrl() |
boolean |
isExternal()
Returns true if the resource is external to confluence.
|
boolean |
isInternal()
Returns true if this resource is internal to confluence.
|
static boolean |
matchesType(EmbeddedResourceParser parser)
Returns whether this class will handle the given file or not
|
String |
toString() |
protected final EmbeddedResourceParser parser
protected final String filename
protected final String type
protected final String page
protected final String space
protected final String url
protected final String originalText
protected Properties properties
public EmbeddedResource(EmbeddedResourceParser parser)
parser - public EmbeddedResource(String originalText)
originalText - public static boolean matchesType(EmbeddedResourceParser parser) throws IllegalArgumentException
parser - The parser for the fileIllegalArgumentExceptionpublic boolean isExternal()
public boolean isInternal()
public String getUrl()
public String getFilename()
public String getType()
public String getOriginalLinkText()
public String getSpace()
isInternal()public String getPage()
isInternal()public Properties getProperties()
Copyright © 2019 Atlassian. All rights reserved.