Chapter 5. Publishing Procedures

Table of Contents

Publishing Procedures

Procedures can be published to virtual paths of an application server within the hierarchy of a siscweb application. Publishing can be done both interactively at the server-side REPL during development, and in the web.xml file at deployment time. (See the section called “The Adapter Servlet”.)

Requires: (import siscweb/publish)
Located in: siscweb.jar

This module provides simple procedures to publish procedures to URL patterns. Patterns can be expressed either as wildcards or regular expressions.

Published procedures accept a single parameter in the form of a request object.

Wildcard patterns can use wildcards and double-wildcards between slashes, such as in "/hello/*" or "/hello/**/world". The first pattern matches requests such as "/hello/there", "/hello/", or even "/hello"; the second pattern matches "/hello/world" as well as "hello/what/a/wonderful/world/".