77. HttpServerWidgets

Widgets used by HTTP server configuration

77.1. Summary of Module Globals

List of Global Functions

List of Global Variables

77.2. Global Functions

77.2.1. DefaultHostPopupInit

Fallback initialization function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

77.2.2. DefaultHostPopupStore

Fallback store function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

77.2.3. DirInit

Initialize directory table

Function parameters

  • string widget

Return value

  • void

77.2.4. DirPopupInit

Initialize directory popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

77.2.5. DirStore

Store directory map

Function parameters

  • string key

  • map event

Return value

  • void

77.2.6. DirTableContents

Contents of host table

Function parameters

  • map descr

Return value

  • list - host contents

77.2.7. HostDocumentRootSummary

Get document root for host

Function parameters

  • any key

  • string id

Return value

  • string - document root

77.2.8. HostId2Key

Get value from id

Function parameters

  • map desc

  • any option_id

Return value

  • string - value

77.2.9. HostInit

Initialize host widget

Function parameters

  • string key

Return value

  • void

77.2.10. HostIsDefault

Is that host default?

Function parameters

  • any widget

  • string key

Return value

  • boolean - is_default?

77.2.11. HostName

Get server name for host

Function parameters

  • any key

  • string id

Return value

  • string - server name

77.2.12. HostStore

Store host settings

Function parameters

  • string key

  • map event

Return value

  • void

77.2.13. HostTableContents

Function for getting contents of the default host table

Function parameters

  • map descr

Return value

  • list - of items for the table

77.2.14. HostTableEntryDelete

Delete function of the global table

Function parameters

  • any opt_id

  • string opt_key

Return value

  • boolean - true if was really deleted

77.2.15. HostTableEntrySummary

Fallback summary function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • string - table entry summary

77.2.16. HostsContents

Hosts contents

Function parameters

  • map descr

Return value

  • list - host list

77.2.17. HostsDelete

Widget for delete host

Function parameters

  • any opt_id

  • string opt_key

Return value

  • boolean - delete success

77.2.18. HostsHandle

Handle host widget

Function parameters

  • string table

  • map event

Return value

  • symbol - (`add, `edit)

77.2.19. HostsInit

Initialize hosts table widget

Function parameters

  • string widget

Return value

  • void

77.2.20. ReloadServer

Reload server

Return value

  • void

77.2.21. SSLInit

Initialize SSL widget

Function parameters

  • string widget

Return value

  • void

77.2.22. SSLStore

Store SSL setting

Function parameters

  • string key

  • map event

Return value

  • void

77.2.23. SSLTableContents

Function for getting contents of the default host table

Function parameters

  • map descr

Return value

  • list - of items for the table

77.2.24. SSLTypeStore

Store SSL type

Function parameters

  • any option_id

  • string option_type

Return value

  • void

77.2.25. getDirOptions

Get directory options

Return value

  • map - directory options

77.2.26. getHostOptions

Get host options

Return value

  • map - host options

77.2.27. get_host_value

Get host value

Function parameters

  • string keyword

  • list< map<string, any> > host

  • any defaultvalue

Return value

  • any - host value

77.2.28. handleDirTable

Handle directory table

Function parameters

  • string key

  • map event

Return value

  • symbol - tablehandle

77.2.29. handleExpertConf

Handler for expert configuration

Function parameters

  • string key

  • map event

Return value

  • symbol - (nil, `expert)

77.2.30. handleHostTable

Handler for editing default host. Handles additional buttons, like logs and modules. Rest is passed to TablePopup::TableHandle.

Function parameters

  • string key

  • map event

Return value

  • symbol - the result of the handling

77.2.31. handleListenSettings

Handle function of a widget

Function parameters

  • string key

  • map event

Return value

  • symbol - symbol for WS or nil

77.2.32. handleModules

Handle function of a widget

Function parameters

  • string key

  • map event

Return value

  • symbol - symbol for WS or nil

77.2.33. handleOpenPort

Handling open port

Function parameters

  • string key

  • map event

Return value

  • symbol - nil

77.2.34. handleSSLTable

Handle SSL widget table

Function parameters

  • string key

  • map event

Return value

  • symbol - sslhandle

77.2.35. handleServiceStatus

Handling service status

Function parameters

  • string key

  • map event

Return value

  • symbol - (`overview_table, `edit. `menu)

77.2.36. initAdaptFirewall

Initialization function for firewall adapting

Function parameters

  • string key

Return value

  • void

77.2.37. initFwOpen

Initialize firewall settings

Function parameters

  • string key

Return value

  • void

77.2.38. initListenInterfaces

Initialize listen interfaces

Function parameters

  • string key

Return value

  • void

77.2.39. initListenSettings

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

77.2.40. initModules

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

77.2.41. initOpenPort

Initialize open port

Function parameters

  • string key

Return value

  • void

77.2.42. initServiceStatus

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

77.2.43. listen2item

Convert a Listen string to an item for table. Splits by the colon.

Function parameters

  • map<string,any> arg

  • integer id

Return value

  • term - term for the table

77.2.44. setHostOptions

Set host options

Function parameters

  • map < integer, map < string,any > > new_options

Return value

  • void

77.2.45. set_host_value

Set host value

Function parameters

  • string keyword

  • list< map<string, any> > host

  • any value

Return value

  • list< map<string,any> > - host map

77.2.46. storeAdaptFirewall

Store function for firewall adapting

Function parameters

  • string opt_id

  • map event

Return value

  • void

77.2.47. storeFwOpen

Store firewall settings

Function parameters

  • string opt_id

  • map event

Return value

  • void

77.2.48. storeServiceStatus

Store function of a widget

Function parameters

  • string key

  • map event

Return value

  • void

77.2.49. validateListenInterfaces

Function parameters

  • string key

  • map event

Return value

  • boolean - validate interfaces

77.2.50. validateOpenPort

Validation open port

Function parameters

  • string key

  • map event

Return value

  • boolean - validate open port

77.2.51. validate_server

Function for validate server entries

Function parameters

  • string hostid

  • list < map<string,any> > server

Return value

  • boolean - valid server

77.2.52. validate_server_fnc

Validate server function

Function parameters

  • string id

  • map key

Return value

  • boolean - validate

77.2.53. validate_serverip

Validate IP for host

Function parameters

  • any id

  • any key

  • map event

Return value

  • boolean - is IP valid

77.2.54. validate_servername

Validate server name

Function parameters

  • any key

  • map event

Return value

  • boolean - valid servername

77.3. Global Variables

77.3.1. popups

Map of popups for CWM

77.3.2. widgets

Map of widgets for CWM

77.4. Module Requirements

77.4.1. Module Imports

  • CWMFirewallInterfaces
  • CWMServiceStart
  • Confirm
  • DNS
  • Directory
  • Hostname
  • Hostname
  • HttpServer
  • IP
  • IP
  • Label
  • LogView
  • Mode
  • Popup
  • Report
  • Service
  • String
  • SuSEFirewall
  • TablePopup
  • YaST::HTTPDData

77.4.2. Module Includes

  • http-server/helps.ycp