Package net.officefloor.spring.webflux
Class WebFluxSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.spring.webflux.WebFluxSectionSource
-
- All Implemented Interfaces:
SectionSource
public class WebFluxSectionSource extends AbstractSectionSource
SectionSource
servicingServerHttpConnection
via Web Flux.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INPUT
SectionInput
name for servicing theServerHttpConnection
.static java.lang.String
OUTPUT
SectionOutput
for passing on to next in chain for servicingServerHttpConnection
.
-
Constructor Summary
Constructors Constructor Description WebFluxSectionSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadSpecification(AbstractSectionSource.SpecificationContext context)
Loads theSectionSourceSpecification
.static void
service(org.springframework.http.server.reactive.HttpHandler httpHandler, ServerHttpConnection connection, HttpRequestState requestState, AsynchronousFlow asynchronousFlow, AsynchronousFlowCompletion completion)
Services theServerHttpConnection
via theHttpHandler
.static void
setHttpHandler(org.springframework.http.server.reactive.HttpHandler httpHandler)
Specifies theHttpHandler
.void
sourceSection(SectionDesigner designer, SectionSourceContext context)
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Field Detail
-
INPUT
public static final java.lang.String INPUT
SectionInput
name for servicing theServerHttpConnection
.- See Also:
- Constant Field Values
-
OUTPUT
public static final java.lang.String OUTPUT
SectionOutput
for passing on to next in chain for servicingServerHttpConnection
.- See Also:
- Constant Field Values
-
-
Method Detail
-
service
public static void service(org.springframework.http.server.reactive.HttpHandler httpHandler, ServerHttpConnection connection, HttpRequestState requestState, AsynchronousFlow asynchronousFlow, AsynchronousFlowCompletion completion) throws java.lang.Exception
Services theServerHttpConnection
via theHttpHandler
.- Parameters:
httpHandler
-HttpHandler
.connection
-ServerHttpConnection
.requestState
-HttpRequestState
.asynchronousFlow
-AsynchronousFlow
.completion
-AsynchronousFlowCompletion
.- Throws:
java.lang.Exception
- If fails to service.
-
setHttpHandler
public static void setHttpHandler(org.springframework.http.server.reactive.HttpHandler httpHandler)
Specifies theHttpHandler
.- Parameters:
httpHandler
-HttpHandler
.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSource
Loads theSectionSourceSpecification
.- Specified by:
loadSpecification
in classAbstractSectionSource
- Parameters:
context
-AbstractSectionSource.SpecificationContext
.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSource
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.- Parameters:
designer
-SectionDesigner
to construct the structure of theOfficeSection
.context
-SectionSourceContext
to source details to construct theOfficeSection
.- Throws:
java.lang.Exception
- If fails to construct theOfficeSection
.
-
-