Package com.logviewer.springboot
Class LogViewerWebsocketConfig
java.lang.Object
com.logviewer.springboot.LogViewerWebsocketConfig
@Configuration
@ConditionalOnClass(org.springframework.web.socket.server.standard.ServerEndpointRegistration.class)
@ConditionalOnProperty(name="log-viewer.use-web-socket",
matchIfMissing=true)
@PropertySource("classpath:log-viewer-springboot.properties")
public class LogViewerWebsocketConfig
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.socket.server.standard.ServerEndpointExporterorg.springframework.web.socket.server.standard.ServerEndpointRegistrationlogViewerWebSocket(org.springframework.core.env.Environment environment)
-
Constructor Details
-
LogViewerWebsocketConfig
public LogViewerWebsocketConfig()
-
-
Method Details
-
logViewerWebSocket
@Bean public org.springframework.web.socket.server.standard.ServerEndpointRegistration logViewerWebSocket(org.springframework.core.env.Environment environment) -
endpointExporter
@ConditionalOnMissingBean(org.springframework.web.socket.server.standard.ServerEndpointExporter.class) @Bean public org.springframework.web.socket.server.standard.ServerEndpointExporter endpointExporter()
-