res

Object
   |
   +--res


 
Properties Summary
 Boolean cache
          Specifies on a per-response base whether to allow client-side caching of the response or not.
 String charset
          Sets the character encoding of the output.
 String contentType
          Sets the content type of the HTTP response.
 Object data
          Object providing space for custom output data.
 String error
          Property containing an internal Helma error message.
 String etag
          Get or set the HTTP ETag for this response.
 Object handlers
          The res.handlers object is a container in the response object used to register macro handlers for the current request/response.
 Date lastModified
          Sets the date the resource was retrieved by the remote client.
 String message
          Buffers a string for output.
 Object meta
          Object providing space for general purpose per request meta information.
 String realm
          Sets the realm for a HTTP-authentication challenge

This defines the realm for a HTTP-authentication challenge.
 HttpServletResponse servletResponse
          Provides direct access to the servlet response header, a Java object of the class Packages.javax.servlet.http.HttpServletResponse

Example:
 res.servletResponse.setHeader( "Content-Disposition", 
   ( this.mimetype.startsWith( "image/" )?
 Array skinpath
          The res.skinpath can be set to an array that tells Helma where to look for skinsets for the current request/response.
 Number status
          Read/write property containing the response's HTTP-status code.
 
Methods Summary
 void abort()
           Aborts the current transaction by throwing an Error
 void commit()
           Commits the current transaction, writing all changed objects to the database, and starts a new transaction.
 void debug(<String> text)
           Append any value to the output of the current page.
 void dependsOn(<String> what)
           Add an item to this response's dependencies.
 void digest()
           Digest this response's dependencies to conditionally create a HTTP not-modified response.
 void encode(<String> textToEncode)
           Writes a string as smooth HTML to the output buffer.
 void encodeXml(<String> textToEncode)
           Writes a string to the output buffer, replacing some characters with their equivalent XML entities.
 void format(<String> textToFormat)
           Writes a string as smooth HTML to the output buffer.
 void forward(<String> path)
           Serves a static file from the application's protectedStatic directory.
 String getBuffer()
           Provides access to the contents of the current repsonse buffer.
 String pop()
           Pops a string buffer from the response object and returns its string value.
 StringBuffer popBuffer()
           Pops the current response buffer without converting it to a string.
 void push()
           Pushes a new string buffer on the response object.
 void pushBuffer(<StringBuffer> strBuffer)
           Pushes a Java StringBuffer object on the reponse object.
 void redirect()
           Sends an HTTP redirect message to the client.
 void reset()
           Resets the current output buffer.
 void setCookie(<String> key,<String> value,<Number> days,<String> path,<String> domain)
           Sets a cookie to be sent to the client machine.
 void stop()
           Stops the execution of the request and sends the content of the reponse buffer.
 void write(<String> text)
           Writes a string to the output buffer.
 void writeBinary(<Packages.java.ByteArray> data)
           Writes binary data to the output buffer.
 void writeln(<String> text)
           Writes a string to the output buffer, adding a linebreak.


Properties Detail

cache

Boolean cache

charset

String charset

contentType

String contentType

data

Object data

error

String error

etag

String etag

handlers

Object handlers

lastModified

Date lastModified

message

String message

meta

Object meta

realm

String realm

servletResponse

HttpServletResponse servletResponse

skinpath

Array skinpath

status

Number status

Method Detail

abort

void abort()

commit

void commit()

debug

void debug(<String> text)

dependsOn

void dependsOn(<String> what)

digest

void digest()

encode

void encode(<String> textToEncode)

encodeXml

void encodeXml(<String> textToEncode)

format

void format(<String> textToFormat)

forward

void forward(<String> path)

getBuffer

String getBuffer()

pop

String pop()

popBuffer

StringBuffer popBuffer()

push

void push()

pushBuffer

void pushBuffer(<StringBuffer> strBuffer)

redirect

void redirect()

reset

void reset()

setCookie

void setCookie(<String> key,<String> value,<Number> days,<String> path,<String> domain)

stop

void stop()

write

void write(<String> text)

writeBinary

void writeBinary(<Packages.java.ByteArray> data)

writeln

void writeln(<String> text)


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