|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.embedded.EmbeddedResource
public class EmbeddedResource
Link to an embedded mime resource.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
EmbeddedResource(EmbeddedResourceParser parser)
Create a new EmbeddedResource. |
|
EmbeddedResource(String originalText)
Create a new Embedded resource using embedded resource text. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public EmbeddedResource(EmbeddedResourceParser parser)
parser - public EmbeddedResource(String originalText)
originalText - | Method Detail |
|---|
public static boolean matchesType(EmbeddedResourceParser parser)
throws IllegalArgumentException
parser - The parser for the file
IllegalArgumentExceptionpublic 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 String toString()
toString in class Objectpublic Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||