Class UrlAddress
Object
|
+--UrlAddress
- class
UrlAddress
This class represents an URL Address that includes MoreMotion specific parameters and it provides methods to
manipulate its parameters.
Defined in Common.js
Field Summary |
boolean |
asHtml
Property that indicates that the "_sendhtml=true" parameter to be included into the parameters to force the
MoreMotion to response as HTML not XML. |
Object |
base
The base part of the URL excluding the query string that contains the parameters |
boolean |
includeRandParameter
Property that indicates a "_rand" parameter with a unique value is included into the parameters
when converting this instance to String. |
Method Summary |
void
|
addParam(name, value)
Adds a new parameter to this object
|
String
|
getParam(name)
Return the value of the given parameter
|
void
|
parse(url)
Parses the given URL string and re-initializes this object.
|
void
|
removeParam(name)
Removes the given parameter from this object
|
String
|
toString()
Converts this object to full URL String and returns it
|
asHtml
boolean asHtml
Property that indicates that the "_sendhtml=true" parameter to be included into the parameters to force the
MoreMotion to response as HTML not XML.
base
Object base
The base part of the URL excluding the query string that contains the parameters
includeRandParameter
boolean includeRandParameter
Property that indicates a "_rand" parameter with a unique value is included into the parameters
when converting this instance to String.
UrlAddress
UrlAddress(url)
Parameters:
url
- The full URL string
addParam
void addParam(name, value)
Adds a new parameter to this object
Parameters:
name
- The name of the parameter
value
- The value of the parameter
getParam
String getParam(name)
Return the value of the given parameter
Parameters:
name
- The name of the parameter
Returns:
The value of the parameter or null
if the parameter is not found.
parse
void parse(url)
Parses the given URL string and re-initializes this object.
Parameters:
url
- The full URL string
removeParam
void removeParam(name)
Removes the given parameter from this object
Parameters:
name
- The name of the parameter
toString
String toString()
Converts this object to full URL String and returns it
Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by
JSDoc on Mon Sep 29 14:52:55 2008