Getserverextension(), Getserverinfo() – Adobe Extending Dreamweaver CS4 User Manual
Page 330
324
EXTENDING DREAMWEAVER CS4
Server models
Description
This function returns an object that describes the method and array signatures that the scripting language uses. The
getLanguageSignatures()
function helps map generic signature mapping to language-specific mapping for the
following elements:
•
The function
•
Constructors
•
Drop code (return values)
•
Arrays
•
Exceptions
•
Data type mappings for primitive data types
The
getLanguageSignatures()
function returns a map of these signature declarations. Extension developers can use
this map to generate language-specific code blocks that Dreamweaver drops on the page (based on the appropriate
server model for the page) when the user drags and drops a Web Services method, for example.
For examples of how to write this function, see the HTML implementation files for the JSP and the ASP.NET server
models. Server model implementation files are located in the Configuration/ServerModels folder.
Arguments
None.
Returns
Dreamweaver expects an object that defines the scripting language signatures. This object should map the generic
signatures to language-specific ones.
getServerExtension()
Availability
Dreamweaver UltraDev 4, deprecated in Dreamweaver MX.
Description
This function returns the default file extension of files that use the current server model. The
serverModel
object is
set to the server model of the currently selected site if no user document is currently selected.
Arguments
None.
Returns
Dreamweaver expects a string that represents the supported file extensions.
getServerInfo()
Availability
Dreamweaver MX.