global

Object
   |
   +--global


 
Properties Summary
 app app
          This object is automatically instantiated as the app property of the global object (or global.app) and there is no constructor to instantiate further instances.
 File File
          Constructor for File objects, providing read and write access to the file system.
 FtpClient FtpClient
          Constructor for File objects, to send and receive files from an FTP server.
 HopObject HopObject
          Constructor for HopObject objects, providing the building blocks of the Helma framework.
 Image Image
          Helma's built-in image object allows you to read, manipulate, and save images.
 Mail Mail
          Helma's built-in mail client enables you to send e-mail via SMTP.
 PathWrapper path
          Accessing objects in the URI path.
 XmlRpcObject Remote
          Constructor for Remote objects, implementing an XML-RPC client.
 req req
          This object is automatically instantiated as the req property of the global object (or global.req) and there is no constructor to instantiate further instances.
 res res
          This object is automatically instantiated as the res property of the global object (or global.res) and there is no constructor to instantiate further instances.
 HopObject root
          Represents the root of the object model hierarchy.
 session session
          This object is automatically instantiated as the session property of the global object (or global.session).
 HopObject User
          The built-in User prototype.
 Xml Xml
          The Xml object provides easy means to convert XML to HopObject and HopObjects to XML.
<static>  Object helma
          Library object for the HelmaLib javascript library.
 
Methods Summary
 Boolean authenticate(<String> username,<String> password)
           Authenticates a user against a standard Unix password file.
 Skin createSkin(<String> skin)
           Creates a Skin object from the passed String.
 void defineLibraryScope(<String> namespace)
           Declares a custom global namespace that will not be garbage collected.
 Object deserialize(<String> filename)
           Deserialize a JavaScript object that was previously serialized to a file.
 String encode(<String> text)
           Encodes a string for HTML output and inserts linebreak tags.
 String encodeForm(<String> text)
           Encodes a string for HTML output, leaving linebreaks untouched.
 String encodeXml(<String> text)
           Encodes a string for XML output.
 String format(<String> text)
           Encodes a string for HTML output, leaving existing markup tags untouched.
 String formatParagraphs(<String> text)
           Encodes a string for HTML output, inserting paragraph tags.
 DatabaseObject getDBConnection(<String> datasource)
           Connects to a relational database, and returns a DatabaseObject representing that connection.
 HTMLDocumentImpl getHtmlDocument(<String> source)
           Parses an HTML string to an XML DOM tree.
 String getProperty(<String> property,<String> defaultvalue)
           Looks up a property that was set in app.properties or server.properties   Returns any property defined in [AppDir]/app.properties, resp.
 MimePart getURL(<String> url,<String> etagOrDate)
           Retrieves a file/document from the passed URL as a MimePart Object, and therefore functions as a minimalist version of a HttpClient.
 XmlDocument getXmlDocument(<String> source)
           Parses an XML string to an XML DOM tree.
 void onCodeUpdate()
           If defined, the onCodeUpdate() function is called whenever the code is recompiled.
 void onLogout()
           If defined, the onLogout() function is called when a user is logged out.
 void onRequest()
           If defined, the onRequest() function is called before each page request is handled.
 void onResponse()
           If defined, the onResponse() function is called after each page request is handled but before the response is returned.
 void onStart()
           If defined, the onStart() function is called when the application is started.
 void onStop()
           If defined, the onStop() function is called when the application is stopped.
 void renderSkin(<String> skin,<Object> params)
           Renders the passed SkinObject or a global skin matching the passed name to the response buffer.
 String renderSkinAsString(<String> skin,<Object> params)
           Returns the result of the rendered SkinObject or a rendered global skin matching the passed name.
 void seal(<Object> obj)
           Seals an object, and prevents any further modifications of that object.
 void serialize(<Object> obj,<String> filename)
           Serialize a JavaScript object to a file.
 String stripTags(<String> markup)
           Removes any markup tags contained in the passed string, and returns the modified string.
 Object toJava(<Object> obj)
           Converts a Javascript String, Date, etc to its Java counterpart.
 Map unwrapJavaMap(<Object> obj)
           Unwrap a map previously wrapped using wrapJavaMap().
 Object wrapJavaMap(<Packages.java.util.Map> obj)
           Wrap a java.util.Map so that it looks and behaves like a native JS object.
 void write(<String> text)
           Writes a string to java.lang.System.out, i.e.
 void writeln(<String> text)
           Writes a string together with a line break to java.lang.System.out, i.e.
<static>  void now_macro(param)
           renders the current datetime
<static>  void property_macro(param)
           write out a property contained in app.properties
<static>  void skin_macro(param)
           renders a global skin
<static>  void write_macro(param)
           wrapper to output a string from within a skin just to be able to use different encodings


Properties Detail

app

app app

File

File File

FtpClient

FtpClient FtpClient

HopObject

HopObject HopObject

Image

Image Image

Mail

Mail Mail

path

PathWrapper path

Remote

XmlRpcObject Remote

req

req req

res

res res

root

HopObject root

session

session session

User

HopObject User

Xml

Xml Xml

helma

<static> Object helma

Method Detail

authenticate

Boolean authenticate(<String> username,<String> password)

createSkin

Skin createSkin(<String> skin)

defineLibraryScope

void defineLibraryScope(<String> namespace)

deserialize

Object deserialize(<String> filename)

encode

String encode(<String> text)

encodeForm

String encodeForm(<String> text)

encodeXml

String encodeXml(<String> text)

format

String format(<String> text)

formatParagraphs

String formatParagraphs(<String> text)

getDBConnection

DatabaseObject getDBConnection(<String> datasource)

getHtmlDocument

HTMLDocumentImpl getHtmlDocument(<String> source)

getProperty

String getProperty(<String> property,<String> defaultvalue)

getURL

MimePart getURL(<String> url,<String> etagOrDate)

getXmlDocument

XmlDocument getXmlDocument(<String> source)

onCodeUpdate

void onCodeUpdate()

onLogout

void onLogout()

onRequest

void onRequest()

onResponse

void onResponse()

onStart

void onStart()

onStop

void onStop()

renderSkin

void renderSkin(<String> skin,<Object> params)

renderSkinAsString

String renderSkinAsString(<String> skin,<Object> params)

seal

void seal(<Object> obj)

serialize

void serialize(<Object> obj,<String> filename)

stripTags

String stripTags(<String> markup)

toJava

Object toJava(<Object> obj)

unwrapJavaMap

Map unwrapJavaMap(<Object> obj)

wrapJavaMap

Object wrapJavaMap(<Packages.java.util.Map> obj)

write

void write(<String> text)

writeln

void writeln(<String> text)

now_macro

<static> void now_macro(param)

property_macro

<static> void property_macro(param)

skin_macro

<static> void skin_macro(param)

write_macro

<static> void write_macro(param)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007