86. HttpServerWidgets

Widgets used by HTTP server configuration

86.1. Summary of Module Globals

List of Global Functions

List of Global Variables

86.2. Global Functions

86.2.1. DefaultHostPopupInit

Fallback initialization function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

86.2.2. DefaultHostPopupStore

Fallback store function of a table entry / popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

86.2.3. DirInit

Initialize directory table

Function parameters

  • string widget

Return value

  • void

86.2.4. DirPopupInit

Initialize directory popup

Function parameters

  • any option_id

  • string option_type

Return value

  • void

86.2.5. DirStore

Store directory map

Function parameters

  • string key

  • map event

Return value

  • void

86.2.6. DirTableContents

Contents of host table

Function parameters

  • map descr

Return value

  • list - host contents

86.2.7. HostDocumentRootSummary

Get document root for host

Function parameters

  • any key

  • string id

Return value

  • string - document root

86.2.8. HostId2Key

Get value from id

Function parameters

  • map desc

  • any option_id

Return value

  • string - value

86.2.9. HostInit

Initialize host widget

Function parameters

  • string key

Return value

  • void

86.2.10. HostIsDefault

Is that host default?

Function parameters

  • any widget

  • string key

Return value

  • boolean - is_default?

86.2.11. HostName

Get server name for host

Function parameters

  • any key

  • string id

Return value

  • string - server name

86.2.12. HostStore

Store host settings

Function parameters

  • string key

  • map event

Return value

  • void

86.2.13. HostTableContents

Function for getting contents of the default host table

Function parameters

  • map descr

Return value

  • list - of items for the table

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

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

86.2.16. HostsContents

Hosts contents

Function parameters

  • map descr

Return value

  • list - host list

86.2.17. HostsDelete

Widget for delete host

Function parameters

  • any opt_id

  • string opt_key

Return value

  • boolean - delete success

86.2.18. HostsHandle

Handle host widget

Function parameters

  • string table

  • map event

Return value

  • symbol - (`add, `edit)

86.2.19. HostsInit

Initialize hosts table widget

Function parameters

  • string widget

Return value

  • void

86.2.20. ReloadServer

Reload server

Return value

  • void

86.2.21. SSLInit

Initialize SSL widget

Function parameters

  • string widget

Return value

  • void

86.2.22. SSLStore

Store SSL setting

Function parameters

  • string key

  • map event

Return value

  • void

86.2.23. SSLTableContents

Function for getting contents of the default host table

Function parameters

  • map descr

Return value

  • list - of items for the table

86.2.24. SSLTypeStore

Store SSL type

Function parameters

  • any option_id

  • string option_type

Return value

  • void

86.2.25. getDirOptions

Get directory options

Return value

  • map - directory options

86.2.26. getHostOptions

Get host options

Function parameters

  • boolean mainhost

Return value

  • map - host options

86.2.27. get_host_value

Get host value

Function parameters

  • string keyword

  • list< map<string, any> > host

  • any defaultvalue

Return value

  • any - host value

86.2.28. handleDirTable

Handle directory table

Function parameters

  • string key

  • map event

Return value

  • symbol - tablehandle

86.2.29. handleExpertConf

Handler for expert configuration

Function parameters

  • string key

  • map event

Return value

  • symbol - (nil, `expert)

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

86.2.31. handleListenSettings

Handle function of a widget

Function parameters

  • string key

  • map event

Return value

  • symbol - symbol for WS or nil

86.2.32. handleModules

Handle function of a widget

Function parameters

  • string key

  • map event

Return value

  • symbol - symbol for WS or nil

86.2.33. handleOpenPort

Handling open port

Function parameters

  • string key

  • map event

Return value

  • symbol - nil

86.2.34. handleSSLTable

Handle SSL widget table

Function parameters

  • string key

  • map event

Return value

  • symbol - sslhandle

86.2.35. handleServiceStatus

Handling service status

Function parameters

  • string key

  • map event

Return value

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

86.2.36. initListenInterfaces

Initialize listen interfaces

Function parameters

  • string key

Return value

  • void

86.2.37. initListenSettings

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

86.2.38. initModules

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

86.2.39. initOpenPort

Initialize open port

Function parameters

  • string key

Return value

  • void

86.2.40. initServiceStatus

Initialize function of a widget

Function parameters

  • string key

Return value

  • void

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

86.2.42. setHostOptions

Set host options

Function parameters

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

Return value

  • void

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

86.2.44. storeServiceStatus

Store function of a widget

Function parameters

  • string key

  • map event

Return value

  • void

86.2.45. validateListenInterfaces

Function parameters

  • string key

  • map event

Return value

  • boolean - validate interfaces

86.2.46. validateOpenPort

Validation open port

Function parameters

  • string key

  • map event

Return value

  • boolean - validate open port

86.2.47. validate_server

Function for validate server entries

Function parameters

  • string hostid

  • list < map<string,any> > server

Return value

  • boolean - valid server

86.2.48. validate_server_fnc

Validate server function

Function parameters

  • string id

  • map key

Return value

  • boolean - validate

86.2.49. validate_serverip

Validate IP for host

Function parameters

  • any id

  • any key

  • map event

Return value

  • boolean - is IP valid

86.2.50. validate_servername

Validate server name

Function parameters

  • string value

Return value

  • boolean - valid servername

86.3. Global Variables

86.3.1. popups

Map of popups for CWM

86.3.2. widgets

Map of widgets for CWM

86.4. Module Requirements

86.4.1. Module Imports

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

86.4.2. Module Includes

  • http-server/helps.ycp