Package | Description |
---|---|
sunlabs.brazil.asterisk | |
sunlabs.brazil.handler | |
sunlabs.brazil.sunlabs | |
sunlabs.brazil.template |
Modifier and Type | Method and Description |
---|---|
boolean |
AsteriskAGIHandler.done(RewriteContext hr)
Close the socket connection.
|
boolean |
AsteriskAGIHandler.init(RewriteContext hr)
Open the socket's streams at top of page.
|
void |
AsteriskAGIHandler.tag_agi(RewriteContext hr)
Provide the 'agi' tag.
|
void |
AsteriskHandler.tag_amicommand(RewriteContext hr)
Issue a synchronous command to the Asterisk AMI interface.
|
void |
AsteriskHandler.tag_asterisk(RewriteContext hr)
This only emits diagnostic information to stdout.
|
void |
AsteriskHandler.tag_register(RewriteContext hr)
Register an event.
|
void |
AsteriskHandler.tag_unregister(RewriteContext hr)
Unregister an event (or events).
|
Modifier and Type | Method and Description |
---|---|
boolean |
SMTPHandler.done(RewriteContext hr)
If we run off the end of the page, but there is email pending
to be sent, send it anyway.
|
boolean |
SMTPHandler.init(RewriteContext hr) |
void |
SMTPHandler.tag_param(RewriteContext hr)
Add an additional email header.
|
void |
SMTPHandler.tag_sendmail(RewriteContext hr)
set-up an email message for sending.
|
void |
SMTPHandler.tag_slash_sendmail(RewriteContext hr)
If we haven't sent the mail yet - send it.
|
Modifier and Type | Method and Description |
---|---|
void |
TitleTemplate.defaultTag(RewriteContext hr) |
void |
SubstAllTemplate.defaultTag(RewriteContext hr) |
protected void |
FormHelpTemplate.do_help(RewriteContext hr)
Look for help text, and put it into an event call.
|
boolean |
ExpContentTemplate.done(RewriteContext hr)
Run the content through a regexp to do further extraction.
|
boolean |
LockTemplate.done(RewriteContext hr) |
boolean |
FormHelpTemplate.done(RewriteContext hr) |
boolean |
PlainTemplate.init(RewriteContext hr) |
boolean |
SnarfTemplate.init(RewriteContext hr)
Get the debug flag and reset page.
|
boolean |
TitleTemplate.init(RewriteContext hr) |
boolean |
ValidateTemplate.init(RewriteContext hr) |
boolean |
ExpContentTemplate.init(RewriteContext hr) |
boolean |
IdUniquificationTemplate.init(RewriteContext hr) |
boolean |
MiscTemplate.init(RewriteContext hr) |
boolean |
FormHelpTemplate.init(RewriteContext hr) |
boolean |
ListTemplate.init(RewriteContext hr)
Clear any left-over lists.
|
void |
AfterTemplate.tag_after(RewriteContext hr) |
void |
MiscTemplate.tag_append(RewriteContext hr)
Append a value to a property, with an optional delimeter.
|
void |
DateTemplate.tag_date(RewriteContext hr) |
void |
DelayHandler.tag_delay(RewriteContext hr)
Pause for "ms" ms and/or "sec" seconds.
|
void |
DigestTemplate.tag_digest(RewriteContext hr) |
void |
IdUniquificationTemplate.tag_div(RewriteContext hr) |
void |
MiscTemplate.tag_eval(RewriteContext hr)
Evaluate the contents of a variable as a template, as if
it was "inline" here.
|
void |
ExecTemplate.tag_exec(RewriteContext hr) |
void |
MiscTemplate.tag_expr(RewriteContext hr)
Set a variable to the result of an arithmetic expression
<expr [name=nnn] value="expr" [format="..." ] [namespace="..."]>
sets name to "NaN" if the expression was invalid.
|
void |
FormHelpTemplate.tag_form(RewriteContext hr)
Look for a "help" attribute, remember its value, then remove it .
|
void |
FetchTemplate.tag_include(RewriteContext hr) |
void |
MiscTemplate.tag_increment(RewriteContext hr)
Increment the value of a variable.
|
void |
MiscTemplate.tag_inline(RewriteContext hr)
Set a variable to all the markup 'till the /inline tag.
|
void |
FormHelpTemplate.tag_input(RewriteContext hr)
Look for a "help" attribute, remember its value, then remove it .
|
void |
ListTemplate.tag_list(RewriteContext hr)
Process the list tag.
|
void |
LockTemplate.tag_lock(RewriteContext hr)
Acquire a lock, preventing any other session from accessing
the same locked section of markup.
|
void |
MiscTemplate.tag_mapnames(RewriteContext hr)
Map a set of properties from one namespace to another,
and (optionally) change their names and values.
|
void |
FormHelpTemplate.tag_option(RewriteContext hr)
Needed to retain parent functionality.
|
void |
PlainTemplate.tag_plain(RewriteContext hr) |
void |
MiscTemplate.tag_pop(RewriteContext hr)
Treat a variable as a stack, and pop a value from it.
|
void |
MiscTemplate.tag_push(RewriteContext hr)
Treat a variable as a stack, and push a value onto it.
|
void |
MiscTemplate.tag_random(RewriteContext hr) |
void |
RemoteHostTemplate.tag_remotehost(RewriteContext hr) |
void |
IdUniquificationTemplate.tag_section(RewriteContext hr) |
void |
FormHelpTemplate.tag_select(RewriteContext hr)
Look for a "help" attribute, remember its value, then remove it .
|
void |
MiscTemplate.tag_sequence(RewriteContext hr)
Generate a (mostly) numeric sequence.
|
void |
FormHelpTemplate.tag_slash_form(RewriteContext hr)
Forget about the "help" action.
|
void |
ListTemplate.tag_slash_list(RewriteContext hr)
remove the most recent list from the current scope.
|
void |
LockTemplate.tag_slash_lock(RewriteContext hr)
Release the previosly named lock.
|
void |
FormHelpTemplate.tag_slash_select(RewriteContext hr)
Needed to retain parent functionality.
|
void |
SnarfTemplate.tag_slash_snarf(RewriteContext hr)
Save the content gathered so far.
|
void |
SnarfTemplate.tag_snarf(RewriteContext hr)
Mark the current location in the document.
|
void |
SourceTemplate.tag_source(RewriteContext hr) |
void |
IdUniquificationTemplate.tag_span(RewriteContext hr) |
void |
MiscTemplate.tag_stringlength(RewriteContext hr)
Compute string length from "value" , return in "name"
|
void |
MiscTemplate.tag_stringop(RewriteContext hr)
String manipulation functions.
|
void |
IdUniquificationTemplate.tag_table(RewriteContext hr) |
void |
FormHelpTemplate.tag_textarea(RewriteContext hr)
Look for a "help" attribute, remember its value, then remove it .
|
void |
ValidateTemplate.tag_validate(RewriteContext hr) |
void |
XmlTreeTemplate.tag_xmltree(RewriteContext hr) |
Modifier and Type | Method and Description |
---|---|
void |
DeCommentTemplate.comment(RewriteContext hr) |
void |
IncludeTemplate.comment(RewriteContext hr)
Treat comments of the form:
<!#include ...> as if they were include tags. |
protected void |
Template.debug(RewriteContext hr)
Add current tag as a comment to the html
|
protected void |
Template.debug(RewriteContext hr,
java.lang.String msg)
Add a diagnostic comment to html output, if "debug" is set
in the request properties.
|
void |
MacroTemplate.defaultTag(RewriteContext hr)
Run the macro, push formal parameters on the stack first.
|
boolean |
SetTemplate.doImport(RewriteContext hr)
See if a remembered namespace is actually in use, and import it.
|
boolean |
ModifiedTemplate.done(RewriteContext hr)
Compute the http last modified value by comparing the origin
last-modified value (if any) with the transform value
|
boolean |
Template.done(RewriteContext hr)
Called after all tags have been processed, one final chance.
|
boolean |
TemplateInterface.done(RewriteContext hr)
Called after all tags have been processed, one final chance.
|
boolean |
RedirectTemplate.done(RewriteContext hr)
adjust the response headers to reflect redirection, if supplied.
|
boolean |
FormTemplate.done(RewriteContext hr)
This is for debugging only !!
|
boolean |
ContentTemplate.done(RewriteContext hr)
Extract useful properties out of the http mime headers.
|
boolean |
ChangedTemplate.done(RewriteContext hr) |
boolean |
Template.init(RewriteContext hr)
Called before this template processes any tags.
|
boolean |
SetTemplate.init(RewriteContext hr)
Chain the session-id properties into the request chain, if
there are any.
|
boolean |
TemplateInterface.init(RewriteContext hr)
Called before this template processes any tags.
|
boolean |
UrlNavBarTemplate.init(RewriteContext hr)
Compute a set of properties based on the URL
|
boolean |
DeCommentTemplate.init(RewriteContext hr) |
boolean |
AllowGtTemplate.init(RewriteContext hr)
Replace the "default" parser with our modified one.
|
boolean |
FormClientTemplate.init(RewriteContext hr)
Save a reference to our request properties.
|
boolean |
PropsTemplate.init(RewriteContext hr)
This gets called at every page, at the beginning.
|
boolean |
NoImageTemplate.init(RewriteContext hr)
Save a reference to our request properties
We'll use it some day to tailor the image display
|
boolean |
BSLTemplate.init(RewriteContext hr) |
boolean |
TOCTemplate.init(RewriteContext hr) |
boolean |
HighlightTemplate.init(RewriteContext hr)
This gets called at every page, at the beginning.
|
boolean |
MacroTemplate.init(RewriteContext hr)
Read in the inital macros, if needed.
|
boolean |
FormTemplate.init(RewriteContext hr)
Save a reference to our request properties.
|
boolean |
ContentTemplate.init(RewriteContext hr) |
boolean |
MultipartSetTemplate.init(RewriteContext hr) |
boolean |
DebugTemplate.init(RewriteContext hr) |
boolean |
ChangedTemplate.init(RewriteContext hr)
Records that this file has just been accessed.
|
boolean |
DirectoryTemplate.init(RewriteContext hr)
Reset at each page
|
void |
TemplateRunner.process(RewriteContext hr)
Processes the next token in the HTML document represented by the
given
RewriteContext . |
void |
RedirectTemplate.redirect(RewriteContext hr)
Look for a redirect tag, change it to an HREF, and remember where
to redirect to (e.g.
|
void |
HighlightTemplate.string(RewriteContext hr)
Gets all text between tags - highlighting it appropriately.
|
void |
ChangedTemplate.tag_a(RewriteContext hr) |
void |
BSLTemplate.tag_abort(RewriteContext hr)
Handles the "abort" tag.
|
void |
AddHeaderTemplate.tag_addheader(RewriteContext hr)
Process the special
addheader tag. |
void |
ContentTemplate.tag_body(RewriteContext hr)
Grab the "body" attributes, and toss all output to this point.
|
void |
BSLTemplate.tag_break(RewriteContext hr)
Handles the "break" tag.
|
void |
ChangedTemplate.tag_changed(RewriteContext hr) |
void |
ContentTemplate.tag_content(RewriteContext hr)
toss everything up to and including here, but turn on
content accumulation.
|
void |
BSLTemplate.tag_continue(RewriteContext hr)
Handles the "continue" tag.
|
void |
DebugTemplate.tag_debug(RewriteContext hr) |
void |
MacroTemplate.tag_definemacro(RewriteContext hr)
Define a new macro.
|
void |
QueueTemplate.tag_dequeue(RewriteContext hr)
Remove an item from the queue, and generate the appropriate properties.
|
void |
QueueTemplate.tag_enqueue(RewriteContext hr)
Add a text message onto a named queue.
|
void |
BSLTemplate.tag_extract(RewriteContext hr)
Handle the [experimental] "extract" tag.
|
void |
DirectoryTemplate.tag_filelist(RewriteContext hr)
Turn on the directory calculator.
|
void |
BSLTemplate.tag_foreach(RewriteContext hr)
Handles the "foreach" tag.
|
void |
FormTemplate.tag_form(RewriteContext hr)
Look for a "prepend" attrubute, remember its value, then remove it
from the tag.
|
void |
SetTemplate.tag_get(RewriteContext hr)
Replace the tag "get" with the value of the
variable specified by the "name" attribute.
|
void |
MultipartSetTemplate.tag_get(RewriteContext hr) |
void |
TOCTemplate.tag_h1(RewriteContext hr)
Add a name anchor to the H1 tag, so we can go there,
and set the request properties:
TOC.[anchor]
to the text of the H1 tag. |
void |
HighlightTemplate.tag_head(RewriteContext hr)
Don't do highlight inside the following sections
|
void |
HighlightTemplate.tag_highlight(RewriteContext hr)
The special entities
highlight and
nohighlight
may be used to turn highlighting on or off in certain areas. |
void |
BSLTemplate.tag_if(RewriteContext hr)
Handles the "if" tag.
|
void |
NoImageTemplate.tag_img(RewriteContext hr)
Convert the html tag img into text using the alt string
|
void |
SetTemplate.tag_import(RewriteContext hr)
Import all the data from the named namespace.
|
void |
MultipartSetTemplate.tag_import(RewriteContext hr) |
void |
IncludeTemplate.tag_include(RewriteContext hr) |
void |
FormClientTemplate.tag_input(RewriteContext hr)
Look for , and replace the
value with the entry in the previously saved client data.
|
void |
FormTemplate.tag_input(RewriteContext hr)
Look for <input name=[x] value=[v]> and replace the
value with the entry in the request properties.
|
void |
ContentTemplate.tag_link(RewriteContext hr)
Extract data out of link tags into the properties.
|
void |
ContentTemplate.tag_meta(RewriteContext hr)
Extract data out of meta tags into the properties.
|
void |
ModifiedTemplate.tag_modified(RewriteContext hr)
Set the content transformation modifiy time to NOW
|
void |
SetTemplate.tag_namespace(RewriteContext hr)
Set the default namespace for "set" and "import".
|
void |
HighlightTemplate.tag_nohighlight(RewriteContext hr) |
void |
FormTemplate.tag_option(RewriteContext hr)
Look at the option tag, set the "selected" attribute as needed.
|
void |
SetTemplate.tag_property(RewriteContext hr)
Convert the html tag "property" in to the request's property
DEPRECATED - use "get"
|
void |
FormClientTemplate.tag_property(RewriteContext hr)
Convert the html tag "property" in to the request's property.
|
void |
PropsTemplate.tag_property(RewriteContext hr)
Convert the html tag "property" in to the request's property
|
void |
MultipartSetTemplate.tag_property(RewriteContext hr) |
void |
QueueTemplate.tag_queueinfo(RewriteContext hr)
Return info about the Q, and optionally clear or remove it.
|
void |
HighlightTemplate.tag_script(RewriteContext hr) |
void |
ScriptEvalTemplate.tag_script(RewriteContext hr) |
void |
ContentTemplate.tag_script(RewriteContext hr)
Append all "script" code while in the head section.
|
void |
FormTemplate.tag_select(RewriteContext hr)
Remember the variable name for the next group of option tags.
|
void |
HighlightTemplate.tag_server(RewriteContext hr) |
void |
SetTemplate.tag_set(RewriteContext hr)
Set the value of a variable.
|
void |
MultipartSetTemplate.tag_set(RewriteContext hr) |
void |
ContentTemplate.tag_slash_body(RewriteContext hr)
If no content tags are present, use the entire "body" instead.
|
void |
ChangedTemplate.tag_slash_changed(RewriteContext hr) |
void |
ContentTemplate.tag_slash_content(RewriteContext hr)
Save the content gathered so far, and turn off content accumulation.
|
void |
FormTemplate.tag_slash_form(RewriteContext hr)
Forget about the "prepend" value
|
void |
HighlightTemplate.tag_slash_head(RewriteContext hr) |
void |
ContentTemplate.tag_slash_head(RewriteContext hr)
Mark end of head section.
|
void |
HighlightTemplate.tag_slash_highlight(RewriteContext hr) |
void |
SetTemplate.tag_slash_namespace(RewriteContext hr)
Clear the default namespace for "set" and "import".
|
void |
HighlightTemplate.tag_slash_nohighlight(RewriteContext hr) |
void |
HighlightTemplate.tag_slash_script(RewriteContext hr) |
void |
FormTemplate.tag_slash_select(RewriteContext hr)
Forget the variable name for the next group of option tags
|
void |
HighlightTemplate.tag_slash_server(RewriteContext hr) |
void |
HighlightTemplate.tag_slash_style(RewriteContext hr) |
void |
SetTemplate.tag_slash_tag(RewriteContext hr)
Insert a literal ">"
|
void |
FormClientTemplate.tag_slash_tag(RewriteContext hr) |
void |
PropsTemplate.tag_slash_tag(RewriteContext hr)
Insert a literal ">"
|
void |
MultipartSetTemplate.tag_slash_tag(RewriteContext hr) |
void |
ContentTemplate.tag_slash_title(RewriteContext hr)
Gather up the title - no tags allowed between title ....
|
void |
HighlightTemplate.tag_style(RewriteContext hr) |
void |
ScriptEvalTemplate.tag_style(RewriteContext hr) |
void |
ContentTemplate.tag_style(RewriteContext hr)
Append all "style" code while in the head section.
|
void |
FormClientTemplate.tag_subst(RewriteContext hr)
Tag to do substitution of previously uploaded data.
|
void |
SetTemplate.tag_tag(RewriteContext hr)
Insert a literal "<".
|
void |
FormClientTemplate.tag_tag(RewriteContext hr)
Using the current scheme, there is no easy way to substitute into
a tag parameter.
|
void |
PropsTemplate.tag_tag(RewriteContext hr)
Insert a literal "<".
|
void |
MultipartSetTemplate.tag_tag(RewriteContext hr) |
void |
TemplateTemplate.tag_template(RewriteContext hr) |
void |
ContentTemplate.tag_title(RewriteContext hr)
Toss everything up to and including this entity.
|
void |
SetTemplate.tag_unimport(RewriteContext hr)
Un-import a previously imported namespace.
|
protected Template |
TemplateRunner.templateFromTag(RewriteContext hr,
java.lang.String tag)
Return the object instance of the template that will process this
tag (if any).
|