Java Doc for ItsNatServletConfig.java in  » Ajax » ItsNat » org » itsnat » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » ItsNat » org.itsnat.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.core.ItsNatServletConfig

All known Subclasses:   org.itsnat.impl.core.ItsNatServletConfigImpl,
ItsNatServletConfig
public interface ItsNatServletConfig extends ItsNatUserData(Code)
Is the wrapper object defined by ItsNat to wrap the javax.servlet.ServletConfig object.

The main use is to setup the default behavior of the servlet.


author:
   Jose Maria Arranz Santamaria




Method Summary
public  longgetAJAXTimeout()
     Returns the default timeout of asynchronous AJAX events.
public  ObjectgetArtifact(String name)
     Returns the artifact with the specified name.
Parameters:
  name - the artifact name to look for.
public  intgetClientErrorMode()
     Returns the default client error mode.

This value specifies whether the browser catches JavaScript errors and if they are shown to the user using a JavaScript alert call.

This feature only affects to (X)HTML documents not to fragments

the default client error mode.
public  DateFormatgetDefaultDateFormat()
     Returns the default date format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

This feature only affects to documents not to fragments

the default data format.
public  StringgetDefaultEncoding()
     Returns the encoding used.
public  NumberFormatgetDefaultNumberFormat()
     Returns the default number format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

This feature only affects to documents not fragments

the default data format.
public  intgetDefaultSyncMode()
     Returns the default synchronous mode of AJAX events.
public  longgetEventDispatcherMaxWait()
     Returns the default max wait until a server fired event with ItsNatDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Event) is processed by the client and returns.

This feature only affects to (X)HTML documents not fragments

the default max wait in milliseconds.
public  StringgetFrameworkScriptFilesBasePath()
     Returns the relative web path directory where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.

For instance: is the path is "js" framework files must be located in: http://://js

This feature only affects to (X)HTML documents not to fragments

the relative web path of framework files.
public  ItsNatServletContextgetItsNatServletContext()
     Returns the application context.
public  ServletConfiggetServletConfig()
     Returns the servlet configuration object wrapped.
public  intgetUseGZip()
     Returns whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.

This feature only affects to documents not to fragments

the bitwise value containing whether gzip is used to encode JavaScript code and/or markup.
public  booleanisAJAXEnabled()
     Informs whether AJAX events are enabled.

This feature only affects to (X)HTML documents not fragments.

true if AJAX is enabled.
public  booleanisAddFrameworkScriptFiles()
     Informs whether the necessary framework JavaScript files are included into the page automatically.
public  booleanisAutoBuildComponents()
     Informs whether components are build automatically using the necessary markup declarations.
public  booleanisAutoCleanEventListeners()
     Informs whether the auto clean event listeners mode is enabled.

This feature only affects to (X)HTML documents not fragments.

true if enabled.
public  booleanisDebugMode()
     Informs whether the debug mode is enabled.

In debug mode the framework makes more checks to ensure is correctly used.

true if debug is enabled.
public  booleanisFastLoadMode()
     Informs whether the fast load mode is enabled.
public  booleanisLoadScriptInline()
     Informs whether the initial JavaScript code is sent inline into the loaded page or is loaded externally.
public  booleanisNodeCacheEnabled()
     Informs whether the speed oriented node cache is enabled.
public  booleanisOnLoadCacheStaticNodes(String mime)
     Informs whether static nodes are serialized as text and globally cached when the template is loaded to save memory (it improves the performance too).
public  booleanisReferrerEnabled()
     Informs whether referrer feature is enabled by default.

This feature only affects to (X)HTML documents not fragments (because requires AJAX)

This feature only works if AJAX is enabled.

true if referrer is enabled.
public  booleanisReferrerPushEnabled()
     Informs whether referrer "push" feature is enabled by default.
public  booleanisScriptingEnabled()
     Informs whether JavaScript is enabled.

This feature only affects to (X)HTML documents not fragments.

true if JavaScript is enabled.
public  booleanisUsePatternMarkupToRender()
     Informs whether dom utils and components use by default the original (saved as pattern) markup to render.

This feature only affects to documents not fragments.

true if the original markup is used.
public  voidregisterArtifact(String name, Object value)
     Registers an artifact with the specified name.
Parameters:
  name - the artifact name
Parameters:
  value - the artifact.
public  ObjectremoveArtifact(String name)
     Removes the artifact with the specified name.
Parameters:
  name - the artifact name to look for.
public  voidsetAJAXEnabled(boolean enabled)
     Sets whether AJAX events are enabled.
public  voidsetAJAXTimeout(long timeout)
     Sets the default timeout of asynchronous AJAX events.
public  voidsetAddFrameworkScriptFiles(boolean value)
     Sets whether the necessary framework JavaScript files are included into the page automatically.
public  voidsetAutoBuildComponents(boolean value)
     Sets whether components are build automatically using the necessary markup declarations.
public  voidsetAutoCleanEventListeners(boolean enabled)
     Sets whether the auto clean event listeners mode is enabled.
public  voidsetClientErrorMode(int mode)
     Sets the default client error mode.
public  voidsetDebugMode(boolean debugMode)
     Sets the debug mode.
public  voidsetDefaultDateFormat(DateFormat format)
     Sets the default date format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
public  voidsetDefaultEncoding(String encoding)
     Sets the encoding used.
public  voidsetDefaultNumberFormat(NumberFormat format)
     Sets the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
public  voidsetDefaultSyncMode(int syncMode)
     Sets the default synchronous mode of AJAX events.
public  voidsetEventDispatcherMaxWait(long wait)
     Sets the default max wait until a server fired event with ItsNatDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Event) is processed by the client and returns.
public  voidsetFastLoadMode(boolean fastLoadMode)
     Sets whether fast load mode is used.
public  voidsetFrameworkScriptFilesBasePath(String path)
     Sets the relative web path where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.
public  voidsetLoadScriptInline(boolean value)
     Sets the initial JavaScript code is sent inline into the loaded page or is loaded externally.
public  voidsetNodeCacheEnabled(boolean enable)
     Sets whether the speed oriented node cache is enabled.
public  voidsetOnLoadCacheStaticNodes(String mime, boolean cache)
     Sets whether static nodes are serialized as text and globally cached when the template is loaded to save memory (it improves the performance too).
public  voidsetReferrerEnabled(boolean enabled)
     Sets whether referrer feature is enabled by default.
public  voidsetReferrerPushEnabled(boolean enabled)
     Sets whether referrer "push" feature is enabled by default.
public  voidsetScriptingEnabled(boolean enabled)
     Sets whether JavaScript is enabled.
public  voidsetUseGZip(int value)
     Sets whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether dom utils and components use by default the original (saved as pattern) markup to render.



Method Detail
getAJAXTimeout
public long getAJAXTimeout()(Code)
Returns the default timeout of asynchronous AJAX events.

This feature only affects to (X)HTML documents not to fragments and is ignored in synchronous AJAX events

When an unfinished AJAX request takes more time than the specified timeout, the request is aborted.

the timeout of asynchronous AJAX events in miliseconds. -1 by default (no timeout).
See Also:   ItsNatServletConfig.setAJAXTimeout(long)



getArtifact
public Object getArtifact(String name)(Code)
Returns the artifact with the specified name.
Parameters:
  name - the artifact name to look for. the artifact or null if not found.
See Also:   ItsNatServletConfig.registerArtifact(String,Object)



getClientErrorMode
public int getClientErrorMode()(Code)
Returns the default client error mode.

This value specifies whether the browser catches JavaScript errors and if they are shown to the user using a JavaScript alert call.

This feature only affects to (X)HTML documents not to fragments

the default client error mode. By default ClientErrorMode.SHOW_SERVER_AND_CLIENT_ERRORS
See Also:   ItsNatServletConfig.setClientErrorMode(int)
See Also:   ClientErrorMode



getDefaultDateFormat
public DateFormat getDefaultDateFormat()(Code)
Returns the default date format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

This feature only affects to documents not to fragments

the default data format. By default returns DateFormat.getInstance().
See Also:   ItsNatServletConfig.setDefaultDateFormat(DateFormat)



getDefaultEncoding
public String getDefaultEncoding()(Code)
Returns the encoding used. This encoding is used to render to text and in the header sent to clients. the encoding, UTF-8 by default.
See Also:   ItsNatServletConfig.setDefaultEncoding(String)



getDefaultNumberFormat
public NumberFormat getDefaultNumberFormat()(Code)
Returns the default number format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .

This feature only affects to documents not fragments

the default data format. By default returns NumberFormat.getInstance().
See Also:   ItsNatServletConfig.setDefaultNumberFormat(NumberFormat)



getDefaultSyncMode
public int getDefaultSyncMode()(Code)
Returns the default synchronous mode of AJAX events.

This feature only affects to (X)HTML documents not to fragments

the synchronous mode. SyncMode.ASYNC_HOLD by default.
See Also:   ItsNatServletConfig.setDefaultSyncMode(int)



getEventDispatcherMaxWait
public long getEventDispatcherMaxWait()(Code)
Returns the default max wait until a server fired event with ItsNatDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Event) is processed by the client and returns.

This feature only affects to (X)HTML documents not fragments

the default max wait in milliseconds. By default is 0 (undefined).
See Also:   ItsNatServletConfig.setEventDispatcherMaxWait(long)
See Also:   ItsNatDocument.getItsNatNode(org.w3c.dom.Node)



getFrameworkScriptFilesBasePath
public String getFrameworkScriptFilesBasePath()(Code)
Returns the relative web path directory where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.

For instance: is the path is "js" framework files must be located in: http://://js

This feature only affects to (X)HTML documents not to fragments

the relative web path of framework files. By default is the "js" folder.
See Also:   ItsNatServletConfig.isAddFrameworkScriptFiles()
See Also:   ItsNatServletConfig.setFrameworkScriptFilesBasePath(String)



getItsNatServletContext
public ItsNatServletContext getItsNatServletContext()(Code)
Returns the application context.

This object instance is shared by all ItsNatServlet s defined by the application.

the application context.



getServletConfig
public ServletConfig getServletConfig()(Code)
Returns the servlet configuration object wrapped. the internal servlet configuration object.



getUseGZip
public int getUseGZip()(Code)
Returns whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.

This feature only affects to documents not to fragments

the bitwise value containing whether gzip is used to encode JavaScript code and/or markup. By default JavaScript code is compressed.
See Also:   ItsNatServletConfig.setUseGZip(int)



isAJAXEnabled
public boolean isAJAXEnabled()(Code)
Informs whether AJAX events are enabled.

This feature only affects to (X)HTML documents not fragments.

true if AJAX is enabled. By default is true.
See Also:   ItsNatServletConfig.setAJAXEnabled(boolean)



isAddFrameworkScriptFiles
public boolean isAddFrameworkScriptFiles()(Code)
Informs whether the necessary framework JavaScript files are included into the page automatically.

This feature only affects to (X)HTML documents not to fragments

true if framework files are included automatically. True by default.
See Also:   ItsNatServletConfig.setAddFrameworkScriptFiles(boolean)



isAutoBuildComponents
public boolean isAutoBuildComponents()(Code)
Informs whether components are build automatically using the necessary markup declarations.

If this feature is enabled any component registered into the component manager and associated to a DOM element being removed from the tree is removed and disposed automatically.

This feature only affects to documents not to fragments

true if automatic component build is enabled. False by default.
See Also:   ItsNatServletConfig.setAutoBuildComponents(boolean)



isAutoCleanEventListeners
public boolean isAutoCleanEventListeners()(Code)
Informs whether the auto clean event listeners mode is enabled.

This feature only affects to (X)HTML documents not fragments.

true if enabled. By default is true.
See Also:   ItsNatServletConfig.setAutoCleanEventListeners(boolean)



isDebugMode
public boolean isDebugMode()(Code)
Informs whether the debug mode is enabled.

In debug mode the framework makes more checks to ensure is correctly used.

true if debug is enabled. False by default.
See Also:   ItsNatServletConfig.setDebugMode(boolean)



isFastLoadMode
public boolean isFastLoadMode()(Code)
Informs whether the fast load mode is enabled.

This feature only affects to (X)HTML documents not to fragments

true if fast mode is enabled. True by default.
See Also:   ItsNatServletConfig.setFastLoadMode(boolean)



isLoadScriptInline
public boolean isLoadScriptInline()(Code)
Informs whether the initial JavaScript code is sent inline into the loaded page or is loaded externally.

This feature only affects to (X)HTML documents not to fragments

true if script is sent inline. True by default.
See Also:   ItsNatServletConfig.setLoadScriptInline(boolean)



isNodeCacheEnabled
public boolean isNodeCacheEnabled()(Code)
Informs whether the speed oriented node cache is enabled.

This feature only affects to (X)HTML documents not to fragments

true if node cache is enabled. True by default.
See Also:   ItsNatServletConfig.setNodeCacheEnabled(boolean)



isOnLoadCacheStaticNodes
public boolean isOnLoadCacheStaticNodes(String mime)(Code)
Informs whether static nodes are serialized as text and globally cached when the template is loaded to save memory (it improves the performance too).

This cache flag is configured by MIME type.


Parameters:
  mime - the MIME type. true if caching is enabled. By default is true if mime is "text/html" or "application/xhtml+xml" else is false.
See Also:   ItsNatServletConfig.setOnLoadCacheStaticNodes(String,boolean)



isReferrerEnabled
public boolean isReferrerEnabled()(Code)
Informs whether referrer feature is enabled by default.

This feature only affects to (X)HTML documents not fragments (because requires AJAX)

This feature only works if AJAX is enabled.

true if referrer is enabled. By default is false.
See Also:   ItsNatServletConfig.setReferrerEnabled(boolean)
See Also:   ItsNatServletConfig.isAJAXEnabled()
See Also:   ItsNatServletRequest.getItsNatDocumentReferrer



isReferrerPushEnabled
public boolean isReferrerPushEnabled()(Code)
Informs whether referrer "push" feature is enabled by default.

This feature only affects to documents not fragments

true if referrer "push" is enabled, if false no document can be accessed by the referrer.
See Also:   ItsNatServletConfig.setReferrerPushEnabled(boolean)
See Also:   ItsNatServletConfig.isReferrerEnabled()
See Also:   ItsNatDocument.addReferrerItsNatServletRequestListener(ItsNatServletRequestListener)



isScriptingEnabled
public boolean isScriptingEnabled()(Code)
Informs whether JavaScript is enabled.

This feature only affects to (X)HTML documents not fragments.

true if JavaScript is enabled. By default is true.
See Also:   ItsNatServletConfig.setScriptingEnabled(boolean)



isUsePatternMarkupToRender
public boolean isUsePatternMarkupToRender()(Code)
Informs whether dom utils and components use by default the original (saved as pattern) markup to render.

This feature only affects to documents not fragments.

true if the original markup is used. False by default.
See Also:   ItsNatServletConfig.setUsePatternMarkupToRender(boolean)



registerArtifact
public void registerArtifact(String name, Object value)(Code)
Registers an artifact with the specified name.
Parameters:
  name - the artifact name
Parameters:
  value - the artifact.
See Also:   ItsNatServletConfig.getArtifact(String)
See Also:   ItsNatServletConfig.removeArtifact(String)
See Also:   org.itsnat.core.NameValue



removeArtifact
public Object removeArtifact(String name)(Code)
Removes the artifact with the specified name.
Parameters:
  name - the artifact name to look for. the removed artifact.
See Also:   ItsNatServletConfig.registerArtifact(String,Object)



setAJAXEnabled
public void setAJAXEnabled(boolean enabled)(Code)
Sets whether AJAX events are enabled.
Parameters:
  enabled - if AJAX is enabled.
See Also:   ItsNatServletConfig.isAJAXEnabled()



setAJAXTimeout
public void setAJAXTimeout(long timeout)(Code)
Sets the default timeout of asynchronous AJAX events.
Parameters:
  timeout - the new timeout. If negative no timeout is defined.
See Also:   ItsNatServletConfig.getAJAXTimeout()



setAddFrameworkScriptFiles
public void setAddFrameworkScriptFiles(boolean value)(Code)
Sets whether the necessary framework JavaScript files are included into the page automatically.
Parameters:
  value - true to include the framework files automatically.
See Also:   ItsNatServletConfig.isAddFrameworkScriptFiles()



setAutoBuildComponents
public void setAutoBuildComponents(boolean value)(Code)
Sets whether components are build automatically using the necessary markup declarations.
Parameters:
  value - true to enable automatic component build.
See Also:   ItsNatServletConfig.isAutoBuildComponents()



setAutoCleanEventListeners
public void setAutoCleanEventListeners(boolean enabled)(Code)
Sets whether the auto clean event listeners mode is enabled.
Parameters:
  enabled - if auto clean event listeners is enabled.
See Also:   ItsNatServletConfig.isAutoCleanEventListeners()



setClientErrorMode
public void setClientErrorMode(int mode)(Code)
Sets the default client error mode.
Parameters:
  mode - the default client error mode.
See Also:   ItsNatServletConfig.getClientErrorMode()
See Also:   



setDebugMode
public void setDebugMode(boolean debugMode)(Code)
Sets the debug mode.
Parameters:
  debugMode - true to set debug mode.
See Also:   ItsNatServletConfig.isDebugMode()



setDefaultDateFormat
public void setDefaultDateFormat(DateFormat format)(Code)
Sets the default date format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
Parameters:
  format - the default data format.
See Also:   ItsNatServletConfig.getDefaultDateFormat()



setDefaultEncoding
public void setDefaultEncoding(String encoding)(Code)
Sets the encoding used.
Parameters:
  encoding - the new encoding.
See Also:   ItsNatServletConfig.getDefaultEncoding()



setDefaultNumberFormat
public void setDefaultNumberFormat(NumberFormat format)(Code)
Sets the default data format used by components such as org.itsnat.comp.html.ItsNatHTMLInputTextFormatted .
Parameters:
  format - the default data format.
See Also:   ItsNatServletConfig.getDefaultNumberFormat()



setDefaultSyncMode
public void setDefaultSyncMode(int syncMode)(Code)
Sets the default synchronous mode of AJAX events.
Parameters:
  syncMode - the new synchronous mode.
See Also:   ItsNatServletConfig.getDefaultSyncMode()



setEventDispatcherMaxWait
public void setEventDispatcherMaxWait(long wait)(Code)
Sets the default max wait until a server fired event with ItsNatDocument.dispatchEvent(org.w3c.dom.events.EventTargetorg.w3c.dom.events.Event) is processed by the client and returns.
Parameters:
  wait - the default max wait in milliseconds.
See Also:   ItsNatServletConfig.getEventDispatcherMaxWait()



setFastLoadMode
public void setFastLoadMode(boolean fastLoadMode)(Code)
Sets whether fast load mode is used.
Parameters:
  fastLoadMode - true to enable fast load.
See Also:   ItsNatServletConfig.isFastLoadMode()



setFrameworkScriptFilesBasePath
public void setFrameworkScriptFilesBasePath(String path)(Code)
Sets the relative web path where the necessary framework JavaScript files are located. This path only has sense if framework files are included automatically.
Parameters:
  path - the relative web path of framework files.
See Also:   ItsNatServletConfig.isAddFrameworkScriptFiles()



setLoadScriptInline
public void setLoadScriptInline(boolean value)(Code)
Sets the initial JavaScript code is sent inline into the loaded page or is loaded externally.
Parameters:
  value - true to sent inline.
See Also:   ItsNatServletConfig.isLoadScriptInline()



setNodeCacheEnabled
public void setNodeCacheEnabled(boolean enable)(Code)
Sets whether the speed oriented node cache is enabled.
Parameters:
  enable - true to enable node cache.
See Also:   ItsNatServletConfig.isNodeCacheEnabled()



setOnLoadCacheStaticNodes
public void setOnLoadCacheStaticNodes(String mime, boolean cache)(Code)
Sets whether static nodes are serialized as text and globally cached when the template is loaded to save memory (it improves the performance too).
Parameters:
  mime - the MIME type.
Parameters:
  cache - true to enable the static node cache to the specified MIME.
See Also:   ItsNatServletConfig.isOnLoadCacheStaticNodes(String)



setReferrerEnabled
public void setReferrerEnabled(boolean enabled)(Code)
Sets whether referrer feature is enabled by default.
Parameters:
  enabled - if referrer is enabled.
See Also:   ItsNatServletConfig.isReferrerEnabled()



setReferrerPushEnabled
public void setReferrerPushEnabled(boolean enabled)(Code)
Sets whether referrer "push" feature is enabled by default.
Parameters:
  enabled - if referrer "push" is enabled.
See Also:   ItsNatServletConfig.isReferrerPushEnabled()



setScriptingEnabled
public void setScriptingEnabled(boolean enabled)(Code)
Sets whether JavaScript is enabled.

If JavaScript is disabled then AJAX is disabled too.


Parameters:
  enabled - if JavaScript is enabled.
See Also:   ItsNatServletConfig.isScriptingEnabled()
See Also:   ItsNatServletConfig.setAJAXEnabled(boolean)



setUseGZip
public void setUseGZip(int value)(Code)
Sets whether JavaScript code and/or markup sent to the client is automatically compressed if the browser accepts this encoding.

A bitwise value must be used using UseGZip constants, for instance: setUseGZip(UseGZip.MARKUP | UseGZip.SCRIPT).


Parameters:
  value - a bitwise value.
See Also:   ItsNatServletConfig.getUseGZip()
See Also:   UseGZip



setUsePatternMarkupToRender
public void setUsePatternMarkupToRender(boolean value)(Code)
Sets whether dom utils and components use by default the original (saved as pattern) markup to render.
Parameters:
  value - true to enable the use of original markup to render.
See Also:   ItsNatServletConfig.isUsePatternMarkupToRender()



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.