public class MultipartSetTemplate extends SetTemplate
request.props
are the same as for forms of type www-url-encoded
, or
method=get
, as long as the query
option
is set.
For file input fields (e.g. <input type=file...>
),
the file content is associated with the field name, and the
properties
name.filename
,
name.type
,
and
name.encoding
are set to to the name of the file uploaded, its type, and
(unless noEncode
is set), the encoding, which is
either none (for text files), or Base64.
The file contents are automatically Base64 encoded for binary files.
Properties:
query
.
saveName
entry.
name
saveName
defaults to:
${prefix}-${fieldName}-${fileName}
Constructor and Description |
---|
MultipartSetTemplate() |
Modifier and Type | Method and Description |
---|---|
boolean |
init(RewriteContext hr)
Chain the session-id properties into the request chain, if
there are any.
|
void |
tag_get(RewriteContext hr)
Replace the tag "get" with the value of the
variable specified by the "name" attribute.
|
void |
tag_import(RewriteContext hr)
Import all the data from the named namespace.
|
void |
tag_property(RewriteContext hr)
Convert the html tag "property" in to the request's property
DEPRECATED - use "get"
|
void |
tag_set(RewriteContext hr)
Set the value of a variable.
|
void |
tag_slash_tag(RewriteContext hr)
Insert a literal ">"
|
void |
tag_tag(RewriteContext hr)
Insert a literal "<".
|
doImport, file2path, init, respond, tag_namespace, tag_slash_namespace, tag_unimport
public boolean init(RewriteContext hr)
SetTemplate
init
in interface TemplateInterface
init
in class SetTemplate
public void tag_set(RewriteContext hr)
SetTemplate
Attributes:
tag_set
in class SetTemplate
public void tag_property(RewriteContext hr)
SetTemplate
tag_property
in class SetTemplate
public void tag_get(RewriteContext hr)
SetTemplate
Attributes:
max
characters.
Max must be at least one, and truncation occurs after
any conversions.
set
attribute, and not inserted into the
HTML stream. If none of "namespace", "convert", or "match"
is used, then this simply copies the property from one name
to another.
<get foo>
is equivalent to:
<get name="foo">
.tag_get
in class SetTemplate
public void tag_import(RewriteContext hr)
SetTemplate
tag_import
in class SetTemplate
public void tag_tag(RewriteContext hr)
SetTemplate
<tag>a href=<property href></tag>
The [optional] attribute "name" may be used to specify the name of the tag, which will be emmitted just after the "<".
tag_tag
in class SetTemplate
public void tag_slash_tag(RewriteContext hr)
SetTemplate
tag_slash_tag
in class SetTemplate