|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.servlet.download.AttachmentUrlParser
public class AttachmentUrlParser
A URL parser for attachments (including thumbnails).
See FileServerServlet for URL prefix constants.
| Constructor Summary | |
|---|---|
AttachmentUrlParser()
|
|
| Method Summary | |
|---|---|
Attachment |
getAttachment(java.lang.String urlPath,
java.lang.String urlPrefix,
java.util.Map parameters)
Gets the attachment based on the url, prefix and query parameters. |
java.lang.String |
getAttachmentFileName(java.lang.String urlPath)
|
ContentEntityObject |
getEntity(java.lang.String urlPath,
java.lang.String prefix)
Gets the entity that the attachment is attached to based on the given url. |
long |
getEntityId(java.lang.String urlPath,
java.lang.String prefix)
Gets the entity id that the attachment is attached to based on the given url. |
void |
setAttachmentManager(AttachmentManager attachmentManager)
|
void |
setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentUrlParser()
| Method Detail |
|---|
public Attachment getAttachment(java.lang.String urlPath,
java.lang.String urlPrefix,
java.util.Map parameters)
urlPath - the attachment url pathurlPrefix - the url prefix up to the entity idparameters - query parameters from the url
public ContentEntityObject getEntity(java.lang.String urlPath,
java.lang.String prefix)
urlPath - the attachment url pathprefix - the url prefix up to the entity id
public long getEntityId(java.lang.String urlPath,
java.lang.String prefix)
urlPath - the attachment url pathprefix - the url prefix up to the entity idpublic java.lang.String getAttachmentFileName(java.lang.String urlPath)
public void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
public void setAttachmentManager(AttachmentManager attachmentManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||