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
SectionSourceservicingServerHttpConnectionvia 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.StringINPUTSectionInputname for servicing theServerHttpConnection.static java.lang.StringOUTPUTSectionOutputfor 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 voidloadSpecification(AbstractSectionSource.SpecificationContext context)Loads theSectionSourceSpecification.static voidservice(org.springframework.http.server.reactive.HttpHandler httpHandler, ServerHttpConnection connection, HttpRequestState requestState, AsynchronousFlow asynchronousFlow, AsynchronousFlowCompletion completion)Services theServerHttpConnectionvia theHttpHandler.static voidsetHttpHandler(org.springframework.http.server.reactive.HttpHandler httpHandler)Specifies theHttpHandler.voidsourceSection(SectionDesigner designer, SectionSourceContext context)Sources theOfficeSectionby 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
SectionInputname for servicing theServerHttpConnection.- See Also:
- Constant Field Values
-
OUTPUT
public static final java.lang.String OUTPUT
SectionOutputfor 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.ExceptionServices theServerHttpConnectionvia 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:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSourceSources theOfficeSectionby constructing it via the inputSectionDesigner.- Parameters:
designer-SectionDesignerto construct the structure of theOfficeSection.context-SectionSourceContextto source details to construct theOfficeSection.- Throws:
java.lang.Exception- If fails to construct theOfficeSection.
-
-