Uses of Class
sunlabs.brazil.template.RewriteContext
Packages that use RewriteContext
Package
Description
-
Uses of RewriteContext in sunlabs.brazil.asterisk
Methods in sunlabs.brazil.asterisk with parameters of type RewriteContextModifier and TypeMethodDescriptionboolean
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). -
Uses of RewriteContext in sunlabs.brazil.handler
Methods in sunlabs.brazil.handler with parameters of type RewriteContextModifier and TypeMethodDescriptionboolean
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. -
Uses of RewriteContext in sunlabs.brazil.sunlabs
Methods in sunlabs.brazil.sunlabs with parameters of type RewriteContextModifier and TypeMethodDescriptionvoid
SubstAllTemplate.defaultTag
(RewriteContext hr) void
TitleTemplate.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
FormHelpTemplate.done
(RewriteContext hr) boolean
LockTemplate.done
(RewriteContext hr) boolean
ExpContentTemplate.init
(RewriteContext hr) boolean
FormHelpTemplate.init
(RewriteContext hr) boolean
IdUniquificationTemplate.init
(RewriteContext hr) boolean
ListTemplate.init
(RewriteContext hr) Clear any left-over lists.boolean
MiscTemplate.init
(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) 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) -
Uses of RewriteContext in sunlabs.brazil.template
Methods in sunlabs.brazil.template with parameters of type RewriteContextModifier and TypeMethodDescriptionvoid
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 htmlprotected void
Template.debug
(RewriteContext hr, 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
ChangedTemplate.done
(RewriteContext hr) boolean
ContentTemplate.done
(RewriteContext hr) Extract useful properties out of the http mime headers.boolean
FormTemplate.done
(RewriteContext hr) This is for debugging only !!boolean
ModifiedTemplate.done
(RewriteContext hr) Compute the http last modified value by comparing the origin last-modified value (if any) with the transform valueboolean
RedirectTemplate.done
(RewriteContext hr) adjust the response headers to reflect redirection, if supplied.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
AllowGtTemplate.init
(RewriteContext hr) Replace the "default" parser with our modified one.boolean
BSLTemplate.init
(RewriteContext hr) boolean
ChangedTemplate.init
(RewriteContext hr) Records that this file has just been accessed.boolean
ContentTemplate.init
(RewriteContext hr) boolean
DebugTemplate.init
(RewriteContext hr) boolean
DeCommentTemplate.init
(RewriteContext hr) boolean
DirectoryTemplate.init
(RewriteContext hr) Reset at each pageboolean
FormClientTemplate.init
(RewriteContext hr) Save a reference to our request properties.boolean
FormTemplate.init
(RewriteContext hr) Save a reference to our request properties.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
MultipartSetTemplate.init
(RewriteContext hr) boolean
NoImageTemplate.init
(RewriteContext hr) Save a reference to our request properties We'll use it some day to tailor the image displayboolean
PropsTemplate.init
(RewriteContext hr) This gets called at every page, at the beginning.boolean
SetTemplate.init
(RewriteContext hr) Chain the session-id properties into the request chain, if there are any.boolean
Template.init
(RewriteContext hr) Called before this template processes any tags.boolean
TemplateInterface.init
(RewriteContext hr) Called before this template processes any tags.boolean
TOCTemplate.init
(RewriteContext hr) boolean
UrlNavBarTemplate.init
(RewriteContext hr) Compute a set of properties based on the URLvoid
TemplateRunner.process
(RewriteContext hr) Processes the next token in the HTML document represented by the givenRewriteContext
.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 specialaddheader
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
MultipartSetTemplate.tag_get
(RewriteContext hr) void
SetTemplate.tag_get
(RewriteContext hr) Replace the tag "get" with the value of the variable specified by the "name" attribute.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 theH1
tag.void
HighlightTemplate.tag_head
(RewriteContext hr) Don't do highlight inside the following sectionsvoid
HighlightTemplate.tag_highlight
(RewriteContext hr) The special entitieshighlight
andnohighlight
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 stringvoid
MultipartSetTemplate.tag_import
(RewriteContext hr) void
SetTemplate.tag_import
(RewriteContext hr) Import all the data from the named namespace.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 NOWvoid
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
FormClientTemplate.tag_property
(RewriteContext hr) Convert the html tag "property" in to the request's property.void
MultipartSetTemplate.tag_property
(RewriteContext hr) void
PropsTemplate.tag_property
(RewriteContext hr) Convert the html tag "property" in to the request's propertyvoid
SetTemplate.tag_property
(RewriteContext hr) Convert the html tag "property" in to the request's property DEPRECATED - use "get"void
QueueTemplate.tag_queueinfo
(RewriteContext hr) Return info about the Q, and optionally clear or remove it.void
ContentTemplate.tag_script
(RewriteContext hr) Append all "script" code while in the head section.void
HighlightTemplate.tag_script
(RewriteContext hr) void
ScriptEvalTemplate.tag_script
(RewriteContext hr) void
FormTemplate.tag_select
(RewriteContext hr) Remember the variable name for the next group of option tags.void
HighlightTemplate.tag_server
(RewriteContext hr) void
MultipartSetTemplate.tag_set
(RewriteContext hr) void
SetTemplate.tag_set
(RewriteContext hr) Set the value of a variable.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" valuevoid
ContentTemplate.tag_slash_head
(RewriteContext hr) Mark end of head section.void
HighlightTemplate.tag_slash_head
(RewriteContext hr) 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 tagsvoid
HighlightTemplate.tag_slash_server
(RewriteContext hr) void
HighlightTemplate.tag_slash_style
(RewriteContext hr) void
FormClientTemplate.tag_slash_tag
(RewriteContext hr) void
MultipartSetTemplate.tag_slash_tag
(RewriteContext hr) void
PropsTemplate.tag_slash_tag
(RewriteContext hr) Insert a literal ">"void
SetTemplate.tag_slash_tag
(RewriteContext hr) Insert a literal ">"void
ContentTemplate.tag_slash_title
(RewriteContext hr) Gather up the title - no tags allowed between title ....void
ContentTemplate.tag_style
(RewriteContext hr) Append all "style" code while in the head section.void
HighlightTemplate.tag_style
(RewriteContext hr) void
ScriptEvalTemplate.tag_style
(RewriteContext hr) void
FormClientTemplate.tag_subst
(RewriteContext hr) Tag to do substitution of previously uploaded data.void
FormClientTemplate.tag_tag
(RewriteContext hr) Using the current scheme, there is no easy way to substitute into a tag parameter.void
MultipartSetTemplate.tag_tag
(RewriteContext hr) void
PropsTemplate.tag_tag
(RewriteContext hr) Insert a literal "<".void
SetTemplate.tag_tag
(RewriteContext hr) Insert a literal "<".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, String tag) Return the object instance of the template that will process this tag (if any).