79. HttpServerWidgets

Widgets used by HTTP server configuration

79.1. Summary of Module Globals

List of Global Functions

List of Global Variables

79.2. Global Functions

79.2.1. DefaultHostPopupInit

Fallback initialization function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

79.2.2. DefaultHostPopupStore

Fallback store function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

79.2.3. DirInit

Initialize directory table

Function parameters

  • string widget

Return value

  • void

79.2.4. DirPopupInit

Initialize directory popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

79.2.5. DirStore

Store directory map

Function parameters

  • string key

  • map event

Return value

  • void

79.2.6. DirTableContents

Contents of host table

Function parameters

  • map descr

Return value

  • list - host contents

79.2.7. HostDocumentRootSummary

Get document root for host

Function parameters

  • any key

  • string id

Return value

  • string - document root

79.2.8. HostId2Key

Get value from id

Function parameters

  • map desc

  • any option_id

Return value

  • string - value

79.2.9. HostInit

Initialize host widget

Function parameters

  • string key

Return value

  • void

79.2.10. HostIsDefault

Is that host default?

Function parameters

  • any widget

  • string key

Return value

  • boolean - is_default?

79.2.11. HostName

Get server name for host

Function parameters

  • any key

  • string id

Return value

  • string - server name

79.2.12. HostStore

Store host settings

Function parameters

  • string key

  • map event

Return value

  • void

79.2.13. HostTableContents

Function for getting contents of the default host table

Function parameters

  • map descr

Return value

  • list - of items for the table

79.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

79.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

79.2.16. HostsContents

Hosts contents

Function parameters

  • map descr

Return value

  • list - host list

79.2.17. HostsDelete

Widget for delete host

Function parameters

  • any opt_id

  • string opt_key

Return value

  • boolean - delete success

79.2.18. HostsHandle

Handle host widget

Function parameters

  • string table

  • map event

Return value

  • symbol - (`add, `edit)

79.2.19. HostsInit

Initialize hosts table widget

Function parameters

  • string widget

Return value

  • void

79.2.20. ReloadServer

Reload server

Return value

  • void

79.2.21. SSLInit

Initialize SSL widget

Function parameters

  • string widget

Return value

  • void

79.2.22. SSLStore

Store SSL setting

Function parameters

  • string key

  • map event

Return value

  • void

79.2.23. SSLTableContents

Function for getting contents of the default host table

Function parameters

  • map descr

Return value

  • list - of items for the table

79.2.24. SSLTypeStore

Store SSL type

Function parameters

  • any option_id

  • string option_type

Return value

  • void

79.2.25. getDirOptions

Get directory options

Return value

  • map - directory options

79.2.26. getHostOptions

Get host options

Function parameters

  • boolean mainhost

Return value

  • map - host options

79.2.27. get_host_value

Get host value

Function parameters

  • string keyword

  • list< map<string, any> > host

  • any defaultvalue

Return value

  • any - host value

79.2.28. handleDirTable

Handle directory table

Function parameters

  • string key

  • map event

Return value

  • symbol - tablehandle

79.2.29. handleExpertConf

Handler for expert configuration

Function parameters

  • string key

  • map event

Return value

  • symbol - (nil, `expert)

79.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

79.2.31. handleListenSettings

Handle function of a widget

Function parameters

  • string key

  • map event

Return value

  • symbol - symbol for WS or nil

79.2.32. handleModules

Handle function of a widget

Function parameters

  • string key

  • map event

Return value

  • symbol - symbol for WS or nil

79.2.33. handleOpenPort

Handling open port

Function parameters

  • string key

  • map event

Return value

  • symbol - nil

79.2.34. handleSSLTable

Handle SSL widget table

Function parameters

  • string key

  • map event

Return value

  • symbol - sslhandle

79.2.35. handleServiceStatus

Handling service status

Function parameters

  • string key

  • map event

Return value

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

79.2.36. initAdaptFirewall

Initialization function for firewall adapting

Function parameters

  • string key

Return value

  • void

79.2.37. initFwOpen

Initialize firewall settings

Function parameters

  • string key

Return value

  • void

79.2.38. initListenInterfaces

Initialize listen interfaces

Function parameters

  • string key

Return value

  • void

79.2.39. initListenSettings

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

79.2.40. initModules

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

79.2.41. initOpenPort

Initialize open port

Function parameters

  • string key

Return value

  • void

79.2.42. initServiceStatus

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

79.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

79.2.44. setHostOptions

Set host options

Function parameters

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

Return value

  • void

79.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

79.2.46. storeAdaptFirewall

Store function for firewall adapting

Function parameters

  • string opt_id

  • map event

Return value

  • void

79.2.47. storeFwOpen

Store firewall settings

Function parameters

  • string opt_id

  • map event

Return value

  • void

79.2.48. storeServiceStatus

Store function of a widget

Function parameters

  • string key

  • map event

Return value

  • void

79.2.49. validateListenInterfaces

Function parameters

  • string key

  • map event

Return value

  • boolean - validate interfaces

79.2.50. validateOpenPort

Validation open port

Function parameters

  • string key

  • map event

Return value

  • boolean - validate open port

79.2.51. validate_server

Function for validate server entries

Function parameters

  • string hostid

  • list < map<string,any> > server

Return value

  • boolean - valid server

79.2.52. validate_server_fnc

Validate server function

Function parameters

  • string id

  • map key

Return value

  • boolean - validate

79.2.53. validate_serverip

Validate IP for host

Function parameters

  • any id

  • any key

  • map event

Return value

  • boolean - is IP valid

79.2.54. validate_servername

Validate server name

Function parameters

  • string value

Return value

  • boolean - valid servername

79.3. Global Variables

79.3.1. popups

Map of popups for CWM

79.3.2. widgets

Map of widgets for CWM

79.4. Module Requirements

79.4.1. Module Imports

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

79.4.2. Module Includes

  • http-server/helps.ycp