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 TypeMethodDescriptionbooleanAsteriskAGIHandler.done(RewriteContext hr) Close the socket connection.booleanAsteriskAGIHandler.init(RewriteContext hr) Open the socket's streams at top of page.voidAsteriskAGIHandler.tag_agi(RewriteContext hr) Provide the 'agi' tag.voidAsteriskHandler.tag_amicommand(RewriteContext hr) Issue a synchronous command to the Asterisk AMI interface.voidAsteriskHandler.tag_asterisk(RewriteContext hr) This only emits diagnostic information to stdout.voidAsteriskHandler.tag_register(RewriteContext hr) Register an event.voidAsteriskHandler.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 TypeMethodDescriptionbooleanSMTPHandler.done(RewriteContext hr) If we run off the end of the page, but there is email pending to be sent, send it anyway.booleanSMTPHandler.init(RewriteContext hr) voidSMTPHandler.tag_param(RewriteContext hr) Add an additional email header.voidSMTPHandler.tag_sendmail(RewriteContext hr) set-up an email message for sending.voidSMTPHandler.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 TypeMethodDescriptionvoidSubstAllTemplate.defaultTag(RewriteContext hr) voidTitleTemplate.defaultTag(RewriteContext hr) protected voidFormHelpTemplate.do_help(RewriteContext hr) Look for help text, and put it into an event call.booleanExpContentTemplate.done(RewriteContext hr) Run the content through a regexp to do further extraction.booleanFormHelpTemplate.done(RewriteContext hr) booleanLockTemplate.done(RewriteContext hr) booleanExpContentTemplate.init(RewriteContext hr) booleanFormHelpTemplate.init(RewriteContext hr) booleanIdUniquificationTemplate.init(RewriteContext hr) booleanListTemplate.init(RewriteContext hr) Clear any left-over lists.booleanMiscTemplate.init(RewriteContext hr) booleanPlainTemplate.init(RewriteContext hr) booleanSnarfTemplate.init(RewriteContext hr) Get the debug flag and reset page.booleanTitleTemplate.init(RewriteContext hr) booleanValidateTemplate.init(RewriteContext hr) voidAfterTemplate.tag_after(RewriteContext hr) voidMiscTemplate.tag_append(RewriteContext hr) Append a value to a property, with an optional delimeter.voidDateTemplate.tag_date(RewriteContext hr) voidDelayHandler.tag_delay(RewriteContext hr) Pause for "ms" ms and/or "sec" seconds.voidDigestTemplate.tag_digest(RewriteContext hr) voidIdUniquificationTemplate.tag_div(RewriteContext hr) voidMiscTemplate.tag_eval(RewriteContext hr) Evaluate the contents of a variable as a template, as if it was "inline" here.voidExecTemplate.tag_exec(RewriteContext hr) voidMiscTemplate.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.voidFormHelpTemplate.tag_form(RewriteContext hr) Look for a "help" attribute, remember its value, then remove it .voidFetchTemplate.tag_include(RewriteContext hr) voidMiscTemplate.tag_increment(RewriteContext hr) Increment the value of a variable.voidMiscTemplate.tag_inline(RewriteContext hr) Set a variable to all the markup 'till the /inline tag.voidFormHelpTemplate.tag_input(RewriteContext hr) Look for a "help" attribute, remember its value, then remove it .voidListTemplate.tag_list(RewriteContext hr) Process the list tag.voidLockTemplate.tag_lock(RewriteContext hr) Acquire a lock, preventing any other session from accessing the same locked section of markup.voidMiscTemplate.tag_mapnames(RewriteContext hr) Map a set of properties from one namespace to another, and (optionally) change their names and values.voidFormHelpTemplate.tag_option(RewriteContext hr) Needed to retain parent functionality.voidPlainTemplate.tag_plain(RewriteContext hr) voidMiscTemplate.tag_pop(RewriteContext hr) Treat a variable as a stack, and pop a value from it.voidMiscTemplate.tag_push(RewriteContext hr) Treat a variable as a stack, and push a value onto it.voidMiscTemplate.tag_random(RewriteContext hr) voidRemoteHostTemplate.tag_remotehost(RewriteContext hr) voidIdUniquificationTemplate.tag_section(RewriteContext hr) voidFormHelpTemplate.tag_select(RewriteContext hr) Look for a "help" attribute, remember its value, then remove it .voidMiscTemplate.tag_sequence(RewriteContext hr) Generate a (mostly) numeric sequence.voidFormHelpTemplate.tag_slash_form(RewriteContext hr) Forget about the "help" action.voidListTemplate.tag_slash_list(RewriteContext hr) remove the most recent list from the current scope.voidLockTemplate.tag_slash_lock(RewriteContext hr) Release the previosly named lock.voidFormHelpTemplate.tag_slash_select(RewriteContext hr) Needed to retain parent functionality.voidSnarfTemplate.tag_slash_snarf(RewriteContext hr) Save the content gathered so far.voidSnarfTemplate.tag_snarf(RewriteContext hr) Mark the current location in the document.voidSourceTemplate.tag_source(RewriteContext hr) voidIdUniquificationTemplate.tag_span(RewriteContext hr) voidMiscTemplate.tag_stringlength(RewriteContext hr) Compute string length from "value" , return in "name"voidMiscTemplate.tag_stringop(RewriteContext hr) String manipulation functions.voidIdUniquificationTemplate.tag_table(RewriteContext hr) voidFormHelpTemplate.tag_textarea(RewriteContext hr) Look for a "help" attribute, remember its value, then remove it .voidValidateTemplate.tag_validate(RewriteContext hr) voidXmlTreeTemplate.tag_xmltree(RewriteContext hr) -
Uses of RewriteContext in sunlabs.brazil.template
Methods in sunlabs.brazil.template with parameters of type RewriteContextModifier and TypeMethodDescriptionvoidDeCommentTemplate.comment(RewriteContext hr) voidIncludeTemplate.comment(RewriteContext hr) Treat comments of the form:<!#include ...>as if they were include tags.protected voidTemplate.debug(RewriteContext hr) Add current tag as a comment to the htmlprotected voidTemplate.debug(RewriteContext hr, String msg) Add a diagnostic comment to html output, if "debug" is set in the request properties.voidMacroTemplate.defaultTag(RewriteContext hr) Run the macro, push formal parameters on the stack first.booleanSetTemplate.doImport(RewriteContext hr) See if a remembered namespace is actually in use, and import it.booleanChangedTemplate.done(RewriteContext hr) booleanContentTemplate.done(RewriteContext hr) Extract useful properties out of the http mime headers.booleanFormTemplate.done(RewriteContext hr) This is for debugging only !!booleanModifiedTemplate.done(RewriteContext hr) Compute the http last modified value by comparing the origin last-modified value (if any) with the transform valuebooleanRedirectTemplate.done(RewriteContext hr) adjust the response headers to reflect redirection, if supplied.booleanTemplate.done(RewriteContext hr) Called after all tags have been processed, one final chance.booleanTemplateInterface.done(RewriteContext hr) Called after all tags have been processed, one final chance.booleanAllowGtTemplate.init(RewriteContext hr) Replace the "default" parser with our modified one.booleanBSLTemplate.init(RewriteContext hr) booleanChangedTemplate.init(RewriteContext hr) Records that this file has just been accessed.booleanContentTemplate.init(RewriteContext hr) booleanDebugTemplate.init(RewriteContext hr) booleanDeCommentTemplate.init(RewriteContext hr) booleanDirectoryTemplate.init(RewriteContext hr) Reset at each pagebooleanFormClientTemplate.init(RewriteContext hr) Save a reference to our request properties.booleanFormTemplate.init(RewriteContext hr) Save a reference to our request properties.booleanHighlightTemplate.init(RewriteContext hr) This gets called at every page, at the beginning.booleanMacroTemplate.init(RewriteContext hr) Read in the inital macros, if needed.booleanMultipartSetTemplate.init(RewriteContext hr) booleanNoImageTemplate.init(RewriteContext hr) Save a reference to our request properties We'll use it some day to tailor the image displaybooleanPropsTemplate.init(RewriteContext hr) This gets called at every page, at the beginning.booleanSetTemplate.init(RewriteContext hr) Chain the session-id properties into the request chain, if there are any.booleanTemplate.init(RewriteContext hr) Called before this template processes any tags.booleanTemplateInterface.init(RewriteContext hr) Called before this template processes any tags.booleanTOCTemplate.init(RewriteContext hr) booleanUrlNavBarTemplate.init(RewriteContext hr) Compute a set of properties based on the URLvoidTemplateRunner.process(RewriteContext hr) Processes the next token in the HTML document represented by the givenRewriteContext.voidRedirectTemplate.redirect(RewriteContext hr) Look for a redirect tag, change it to an HREF, and remember where to redirect to (e.g.voidHighlightTemplate.string(RewriteContext hr) Gets all text between tags - highlighting it appropriately.voidChangedTemplate.tag_a(RewriteContext hr) voidBSLTemplate.tag_abort(RewriteContext hr) Handles the "abort" tag.voidAddHeaderTemplate.tag_addheader(RewriteContext hr) Process the specialaddheadertag.voidContentTemplate.tag_body(RewriteContext hr) Grab the "body" attributes, and toss all output to this point.voidBSLTemplate.tag_break(RewriteContext hr) Handles the "break" tag.voidChangedTemplate.tag_changed(RewriteContext hr) voidContentTemplate.tag_content(RewriteContext hr) toss everything up to and including here, but turn on content accumulation.voidBSLTemplate.tag_continue(RewriteContext hr) Handles the "continue" tag.voidDebugTemplate.tag_debug(RewriteContext hr) voidMacroTemplate.tag_definemacro(RewriteContext hr) Define a new macro.voidQueueTemplate.tag_dequeue(RewriteContext hr) Remove an item from the queue, and generate the appropriate properties.voidQueueTemplate.tag_enqueue(RewriteContext hr) Add a text message onto a named queue.voidBSLTemplate.tag_extract(RewriteContext hr) Handle the [experimental] "extract" tag.voidDirectoryTemplate.tag_filelist(RewriteContext hr) Turn on the directory calculator.voidBSLTemplate.tag_foreach(RewriteContext hr) Handles the "foreach" tag.voidFormTemplate.tag_form(RewriteContext hr) Look for a "prepend" attrubute, remember its value, then remove it from the tag.voidMultipartSetTemplate.tag_get(RewriteContext hr) voidSetTemplate.tag_get(RewriteContext hr) Replace the tag "get" with the value of the variable specified by the "name" attribute.voidTOCTemplate.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 theH1tag.voidHighlightTemplate.tag_head(RewriteContext hr) Don't do highlight inside the following sectionsvoidHighlightTemplate.tag_highlight(RewriteContext hr) The special entitieshighlightandnohighlightmay be used to turn highlighting on or off in certain areas.voidBSLTemplate.tag_if(RewriteContext hr) Handles the "if" tag.voidNoImageTemplate.tag_img(RewriteContext hr) Convert the html tag img into text using the alt stringvoidMultipartSetTemplate.tag_import(RewriteContext hr) voidSetTemplate.tag_import(RewriteContext hr) Import all the data from the named namespace.voidIncludeTemplate.tag_include(RewriteContext hr) voidFormClientTemplate.tag_input(RewriteContext hr) Look for , and replace the value with the entry in the previously saved client data.voidFormTemplate.tag_input(RewriteContext hr) Look for <input name=[x] value=[v]> and replace the value with the entry in the request properties.voidContentTemplate.tag_link(RewriteContext hr) Extract data out of link tags into the properties.voidContentTemplate.tag_meta(RewriteContext hr) Extract data out of meta tags into the properties.voidModifiedTemplate.tag_modified(RewriteContext hr) Set the content transformation modifiy time to NOWvoidSetTemplate.tag_namespace(RewriteContext hr) Set the default namespace for "set" and "import".voidHighlightTemplate.tag_nohighlight(RewriteContext hr) voidFormTemplate.tag_option(RewriteContext hr) Look at the option tag, set the "selected" attribute as needed.voidFormClientTemplate.tag_property(RewriteContext hr) Convert the html tag "property" in to the request's property.voidMultipartSetTemplate.tag_property(RewriteContext hr) voidPropsTemplate.tag_property(RewriteContext hr) Convert the html tag "property" in to the request's propertyvoidSetTemplate.tag_property(RewriteContext hr) Convert the html tag "property" in to the request's property DEPRECATED - use "get"voidQueueTemplate.tag_queueinfo(RewriteContext hr) Return info about the Q, and optionally clear or remove it.voidContentTemplate.tag_script(RewriteContext hr) Append all "script" code while in the head section.voidHighlightTemplate.tag_script(RewriteContext hr) voidScriptEvalTemplate.tag_script(RewriteContext hr) voidFormTemplate.tag_select(RewriteContext hr) Remember the variable name for the next group of option tags.voidHighlightTemplate.tag_server(RewriteContext hr) voidMultipartSetTemplate.tag_set(RewriteContext hr) voidSetTemplate.tag_set(RewriteContext hr) Set the value of a variable.voidContentTemplate.tag_slash_body(RewriteContext hr) If no content tags are present, use the entire "body" instead.voidChangedTemplate.tag_slash_changed(RewriteContext hr) voidContentTemplate.tag_slash_content(RewriteContext hr) Save the content gathered so far, and turn off content accumulation.voidFormTemplate.tag_slash_form(RewriteContext hr) Forget about the "prepend" valuevoidContentTemplate.tag_slash_head(RewriteContext hr) Mark end of head section.voidHighlightTemplate.tag_slash_head(RewriteContext hr) voidHighlightTemplate.tag_slash_highlight(RewriteContext hr) voidSetTemplate.tag_slash_namespace(RewriteContext hr) Clear the default namespace for "set" and "import".voidHighlightTemplate.tag_slash_nohighlight(RewriteContext hr) voidHighlightTemplate.tag_slash_script(RewriteContext hr) voidFormTemplate.tag_slash_select(RewriteContext hr) Forget the variable name for the next group of option tagsvoidHighlightTemplate.tag_slash_server(RewriteContext hr) voidHighlightTemplate.tag_slash_style(RewriteContext hr) voidFormClientTemplate.tag_slash_tag(RewriteContext hr) voidMultipartSetTemplate.tag_slash_tag(RewriteContext hr) voidPropsTemplate.tag_slash_tag(RewriteContext hr) Insert a literal ">"voidSetTemplate.tag_slash_tag(RewriteContext hr) Insert a literal ">"voidContentTemplate.tag_slash_title(RewriteContext hr) Gather up the title - no tags allowed between title ....voidContentTemplate.tag_style(RewriteContext hr) Append all "style" code while in the head section.voidHighlightTemplate.tag_style(RewriteContext hr) voidScriptEvalTemplate.tag_style(RewriteContext hr) voidFormClientTemplate.tag_subst(RewriteContext hr) Tag to do substitution of previously uploaded data.voidFormClientTemplate.tag_tag(RewriteContext hr) Using the current scheme, there is no easy way to substitute into a tag parameter.voidMultipartSetTemplate.tag_tag(RewriteContext hr) voidPropsTemplate.tag_tag(RewriteContext hr) Insert a literal "<".voidSetTemplate.tag_tag(RewriteContext hr) Insert a literal "<".voidTemplateTemplate.tag_template(RewriteContext hr) voidContentTemplate.tag_title(RewriteContext hr) Toss everything up to and including this entity.voidSetTemplate.tag_unimport(RewriteContext hr) Un-import a previously imported namespace.protected TemplateTemplateRunner.templateFromTag(RewriteContext hr, String tag) Return the object instance of the template that will process this tag (if any).