This document describes classes from Sioux namespace and Nemerle.Xml namespace.
Creates a cookie, a small amount of information sent by a web application to a Web browser, saved by the browser, and later sent back to the server.
Constructors:
constructs a cookie with given name and value
constructs a cookie with given name, value and expiration date
Public properties:
get - returns the name of the cookie. The name cannot be changed after creation.
set - assigns a new value to a cookie after the cookie is created
get - return value of cookie
set - setting a virtual path of cookie to which client should return cookie
get - getting a path of cookie
to which client should return cookie
set - specifies a path for the cookie to which the client should return the cookie
get - returns the domain name set for this cookie
set - sets the expiration date and time for cookie
get - gets the expiration date and time for cookie
set - sets a value indicating the browser whether the cookie should only be sent using a secure protocol,
such as HTTPS or SSL.
get - gets ----||----
get - get a header pair representing cookie, where first element is header name and second is header value
Public methods:
Returns string representation of cookie
Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user.
Public properties:
get - returns a string containing the unique identifier assigned to this session.
set - specifies the time, in minutes, between client requests before Sioux will invalidate this session.
get - returns the maximum time interval, in minutes, that sioux will keep this session open between
client accesses. After this interval, sioux will invalidate the session. A -1 time indicates the session
should never timeout.
get - returns time when session was created
get - returns time when client last sent request associated with session
get - returns true when session was created with last client request
get - gets a value indicating if session is stall valid
get - returns a list of all attributes associated with session, where first element of pair is attribute name, and second is attribute
Public methods:
Invalidates this session
Adds attribute to session using specified name
Removes attribute with specified name from session
Returns true if session contains attribute with given name, else returns false
Returns Some(attribute) if session contains attribute with specified name, else returns None
Class representing Nemerle web application.
Public methods:
Handles an HTTP request. Recognizes type of request. Puts get and post variables into hashtables, finally runs application (calling DoPost() or DoGet() method) and sends response.
Reports internal error and dies.
Protected methods:
Called by Sioux to handle GET request.
Called by Sioux to handle POST request.
Protected fields:
Name of page that is requested.
XmlTemplate object to be sent to the response stream.
Contains all request parameters, if request type is DynamicGet.
Contains all request parameters, if request type is Post.
Hashtable containing informations about posted files. Key is the value of "name" attribute in the input field, and value is a tuple (filename,tempname,filesize). "filename" is original name of file, "tempname" is temporary name of file (file's name on server uploads directory) and "filesize" is the size of uploaded file.
Request used to access this application.
Response object, that application uses for sending response to browser.
Class that parses request stream and provides information about HTTP request.
Public properties:
get - returns request info associated with this instance
get - returns request uri as a string
get - returns list of cookies sent with this request
get - returns request's protocol
Public methods:
Returns Some(Cookie), if browser sent cookie with given name, else returns None.
Return session associated with this request.
Return session associated with this request, if create is true creates new session.
Returns value of specified header.
Class representing HTTP server response.
Public methods:
Writes a string to the response stream
.Writes a CR/LF pair to the response stream.
Writes a string followed by CR/LF pair to the response stream.
Writes server's name to the response stream.
Redirects browser to given url.
Writes an error message concerning an invalid request
Writes an error message concerning not being found.
Writes the MIME content type header to the response stream.
Writes the contents of an XML document to the response stream.
Writes the contents of an XHTML document to the response stream.
Checks if the url from a request is valid.
Converts an URL from request into a local file name with the path relative to the server repository.
Serves a static file.
Adds a response header with given name and value.
Adds the specified cookie to the response. This method can b called multiple times to set more than one cookie.
This variant describes HTTP request
Values:
This option is used when request type is static GET. It can carry only the url string used in request.
This option is used when some application is opened. It contains request url and all parameters used in the request.
This option is used when we send POST request to some application. It contains request url and all parameters used in the request.
This option is used when request is invalid, for example dynamic GET request to simple, static html page.
An XML document with easy node identification.
Constructors:
Creates an XmlTemplate basing on an XmlDocument and fills the IDs.
Reads an XML document from a file and fills the IDs.
Public methods:
Returns a node given it's ID.
Put specified [text] as the only content of node [id].
Returns the XML document associated with this object.
Interface to be implemented by all generators used in XmlPipeline.Process method.
Methods:
Generates XmlTemplate.
Description of xml template transformer.
Values:
Option used when transformer is xsl stylesheet.
Option used when transformer is XmlTemplate -> XmlTemplate function.
Description of xml pipeline, used to process (generate and transform) xml files.
Public methods:
Method used to generate xml templates and transform it using page handlers and xsl styles
Class used to generate xml templates using xml files.
Implements IGenerator.
Constructors:
Reads an XML document from a file and creates xml template.
Constructs xml template using xml document.
Public methods:
Generates XmlTemplate.
Class used to generate xml templates using xml files.
Implements IGenerator.
Constructors:
Generates xml directory listing from [path] directory.
Public methods:
Generates XmlTemplate.
Contains transformers used in XmlPipeline process
Public methods:
Encodes urls using [include] pattern for including attributes from encode URL rewriting and [exclude] pattern for excluding attributes from encode URL rewriting. The attribute values are encoded, if an expressions of the form element-name/attribute-name matches. The same for excluding. element-name and attribute-value can have * value.
Encodes all href and action attributes of any element. Includes from encoding src attribute of form element. Excludes from encoding src attribute of img element.