public final class FileTag extends BodyTagImpl
Constructor and Description |
---|
FileTag() |
Modifier and Type | Method and Description |
---|---|
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 |
setCreatepath(boolean createPath) |
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) |
doInitBody, setBodyContent
getParent, required, required, required, required, setPageContext, setPageContext, setParent
public FileTag()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BodyTagImpl
public void setAction(String strAction) throws ApplicationException
strAction
- value to setApplicationException
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 setPageException
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
acl
- value to setApplicationException
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 setApplicationException
public void setAccept(String accept)
accept
- value to setpublic void setStrict(boolean strict)
public void setCreatepath(boolean createPath)
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 setCopyright © 2015 Lucee