|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.ext.tag.TagImpl
railo.runtime.ext.tag.BodyTagImpl
railo.runtime.tag.FileTag
public final class FileTag
Handles all interactions with files. The attributes you use with cffile depend on the value of the action attribute. For example, if the action = "write", use the attributes associated with writing a text file.
Field Summary | |
---|---|
static int |
NAMECONFLICT_ERROR
|
static int |
NAMECONFLICT_MAKEUNIQUE
|
static int |
NAMECONFLICT_OVERWRITE
|
static int |
NAMECONFLICT_SKIP
|
static int |
NAMECONFLICT_UNDEFINED
|
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
FileTag()
|
Method Summary | |
---|---|
static void |
actionCopy(PageContext pageContext,
SecurityManager securityManager,
Resource source,
String strDestination,
int nameconflict,
String serverPassword,
Object acl,
int mode,
String attributes)
copy source file to destination file or path |
static void |
actionMove(PageContext pageContext,
SecurityManager securityManager,
Resource source,
String strDestination,
int nameconflict,
String serverPassword,
Object acl,
int mode,
String attributes)
move source file to destination path or file |
void |
actionUpload()
read source file |
static Struct |
actionUpload(PageContext pageContext,
SecurityManager securityManager,
String filefield,
String strDestination,
int nameconflict,
String accept,
boolean strict,
int mode,
String attributes,
Object acl,
String serverPassword)
|
void |
actionUploadAll()
|
static Array |
actionUploadAll(PageContext pageContext,
SecurityManager securityManager,
String strDestination,
int nameconflict,
String accept,
boolean strict,
int mode,
String attributes,
Object acl,
String serverPassword)
|
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
void |
hasBody(boolean hasBody)
|
void |
release()
|
void |
setAccept(String accept)
set the value accept Limits the MIME types to accept. |
void |
setAcl(Object acl)
|
void |
setAcl(String acl)
set the value acl used only for s3 resources, for all others ignored |
void |
setAction(String strAction)
set the value action Type of file manipulation that the tag performs. |
void |
setAddnewline(boolean addnewline)
set the value addnewline Yes: appends newline character to text written to file |
void |
setAttributes(String attributes)
set the value attributes One attribute (Windows) or a comma-delimited list of attributes (other platforms) to set on the file. |
void |
setCharset(String charset)
set the value charset Character set name for the file contents. |
void |
setDestination(String destination)
set the value destination Absolute pathname of directory or file on web server. |
void |
setFile(String file)
set the value file Absolute pathname of file on web server. |
void |
setFilefield(String filefield)
set the value filefield Name of form field used to select the file. |
void |
setFixnewline(boolean fixnewline)
|
void |
setMode(String mode)
set the value mode Applies only to Solaris and HP-UX. |
void |
setNameconflict(String nameconflict)
set the value nameconflict Action to take if filename is the same as that of a file in the directory. |
void |
setOutput(Object output)
set the value output Content of the file to be created. |
void |
setResult(String result)
|
void |
setServerpassword(String serverPassword)
|
void |
setSource(String source)
set the value source Absolute pathname of file on web server. |
void |
setStoreacl(Object acl)
|
void |
setStrict(boolean strict)
|
void |
setVariable(String variable)
set the value variable Name of variable to contain contents of text file. |
static int |
toMode(String mode)
|
static int |
toNameconflict(String nameconflict)
|
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl |
---|
doInitBody, setBodyContent |
Methods inherited from class railo.runtime.ext.tag.TagImpl |
---|
getParent, required, required, required, required, setPageContext, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
public static final int NAMECONFLICT_UNDEFINED
public static final int NAMECONFLICT_ERROR
public static final int NAMECONFLICT_SKIP
public static final int NAMECONFLICT_OVERWRITE
public static final int NAMECONFLICT_MAKEUNIQUE
Constructor Detail |
---|
public FileTag()
Method Detail |
---|
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BodyTagImpl
public void setAction(String strAction) throws ApplicationException
action
- value to set
ApplicationException
public void setDestination(String destination)
destination
- value to setpublic void setOutput(Object output)
output
- value to setpublic void setFile(String file)
file
- value to setpublic void setMode(String mode) throws PageException
mode
- value to set
PageException
public static int toMode(String mode) throws PageException
PageException
public void setVariable(String variable)
variable
- value to setpublic void setFilefield(String filefield)
filefield
- value to setpublic void setCharset(String charset)
charset
- value to setpublic void setAcl(String acl) throws ApplicationException
charset
- value to set
ApplicationException
public void setAcl(Object acl)
public void setStoreacl(Object acl)
public void setServerpassword(String serverPassword)
public void setAddnewline(boolean addnewline)
addnewline
- value to setpublic void setAttributes(String attributes)
attributes
- value to setpublic void setSource(String source)
source
- value to setpublic void setNameconflict(String nameconflict) throws ApplicationException
nameconflict
- value to set
ApplicationException
public static int toNameconflict(String nameconflict) throws ApplicationException
ApplicationException
public void setAccept(String accept)
accept
- value to setpublic void setStrict(boolean strict)
public void setResult(String result)
result
- The result to set.public int doStartTag() throws PageException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
PageException
public int doAfterBody() throws ApplicationException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class BodyTagImpl
ApplicationException
public int doEndTag() throws PageException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
PageException
public void hasBody(boolean hasBody)
public static void actionMove(PageContext pageContext, SecurityManager securityManager, Resource source, String strDestination, int nameconflict, String serverPassword, Object acl, int mode, String attributes) throws PageException
PageException
public static void actionCopy(PageContext pageContext, SecurityManager securityManager, Resource source, String strDestination, int nameconflict, String serverPassword, Object acl, int mode, String attributes) throws PageException
PageException
public void actionUpload() throws PageException
PageException
public static Struct actionUpload(PageContext pageContext, SecurityManager securityManager, String filefield, String strDestination, int nameconflict, String accept, boolean strict, int mode, String attributes, Object acl, String serverPassword) throws PageException
PageException
public void actionUploadAll() throws PageException
PageException
public static Array actionUploadAll(PageContext pageContext, SecurityManager securityManager, String strDestination, int nameconflict, String accept, boolean strict, int mode, String attributes, Object acl, String serverPassword) throws PageException
PageException
public void setFixnewline(boolean fixnewline)
fixnewline
- the fixnewline to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |