|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.jalios.jcms.taglib.FileWebdavTag
public class FileWebdavTag
This tag prints icons for webfolders: - Download a File - Edit with WebDav a File - Open a WebFolder
Nested Class Summary | |
---|---|
static class |
FileWebdavTag.Webdav
|
Field Summary | |
---|---|
protected Category |
cat
|
protected FileDocument |
doc
|
protected static Set |
mimetypes
|
protected boolean |
openByBrowser
|
protected boolean |
openByWebdav
|
static String |
REVISION
|
protected boolean |
showRoot
|
protected String |
title
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
FileWebdavTag()
|
Method Summary | |
---|---|
void |
clean()
Clean tags parameters |
int |
doEndTag()
|
int |
doStartTag()
|
static String |
encodeWebdavURL(String str)
Convenient method to encode a WebDav URL. |
static String |
encodeWebdavURL2(String s)
Convenient method to encode a WebDav URL using webdav encoding. |
void |
setDoc(FileDocument doc)
This method set the FileDocument to open with webdav |
void |
setFolder(Category cat)
This method set the category to use to open webfolder |
void |
setOpenByBrowser(boolean openByBrowser)
Display download icon |
void |
setOpenByWebdav(boolean openByWebdav)
Display webdav edit icon |
void |
setShowRoot(boolean showRoot)
Display root, do not open workspace |
void |
setTitle(String title)
This method set a custom title for the given icon |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, resetCustomAttributes, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
protected static final Set mimetypes
protected FileDocument doc
protected Category cat
protected boolean openByWebdav
protected boolean openByBrowser
protected String title
protected boolean showRoot
Constructor Detail |
---|
public FileWebdavTag()
Method Detail |
---|
public void setFolder(Category cat)
cat
- the opening folderpublic void setDoc(FileDocument doc)
doc
- the FileDocument to work withpublic void setTitle(String title)
title
- a title for the given iconpublic void setOpenByBrowser(boolean openByBrowser)
openByBrowser
- public void setOpenByWebdav(boolean openByWebdav)
openByWebdav
- public void setShowRoot(boolean showRoot)
showRoot
- public void clean()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public static String encodeWebdavURL(String str)
Channel.getWebdavEncoding()
as encoding
- catch various exceptions thrown by URLEncoder.encode(String, String)
.
str
- the string to url encode
URLEncoder.encode(String, String)
public static String encodeWebdavURL2(String s)
URLEncoder.encode(String, String)
,
but space is encoded with %20 and '/' is not encoded.
s
- String
to be translated.
String
.Util.encodeUrl(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |