WebStarter

package
v0.0.0-...-c0a77c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebBeanInitialization

type WebBeanInitialization interface {
	InitWebBean(c SpringWeb.WebContainer)
}

定义 Web Bean 初始化接口

type WebContainerWrapper

type WebContainerWrapper struct {
	SpringWeb.WebContainer
	// contains filtered or unexported fields
}

func NewWebContainerWrapper

func NewWebContainerWrapper(c SpringWeb.WebContainer, ctx SpringCore.SpringContext) *WebContainerWrapper

func (*WebContainerWrapper) Filters

func (w *WebContainerWrapper) Filters(filterName ...string) []SpringWeb.Filter

type WebServerConfig

type WebServerConfig struct {
	EnableHTTP  bool   `value:"${web.server.enable:=true}"`      // 是否启用 HTTP
	Port        int    `value:"${web.server.port:=8080}"`        // HTTP 端口
	EnableHTTPS bool   `value:"${web.server.ssl.enable:=false}"` // 是否启用 HTTPS
	SSLPort     int    `value:"${web.server.ssl.port:=8443}"`    // SSL 端口
	SSLCert     string `value:"${web.server.ssl.cert:=}"`        // SSL 证书
	SSLKey      string `value:"${web.server.ssl.key:=}"`         // SSL 秘钥
}

Web 服务器配置

type WebServerStarter

type WebServerStarter struct {
	Config *WebServerConfig     `autowire:""`
	Server *SpringWeb.WebServer `autowire:"?"`
}

Web 容器启动器

func (*WebServerStarter) OnStartApplication

func (starter *WebServerStarter) OnStartApplication(ctx SpringBoot.ApplicationContext)

func (*WebServerStarter) OnStopApplication

func (starter *WebServerStarter) OnStopApplication(ctx SpringBoot.ApplicationContext)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL