Interface PlatformHttpEngine
-
public interface PlatformHttpEngine
An abstraction of an HTTP Server engine on which HTTP endpoints can be deployed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.apache.camel.Consumer
createConsumer(PlatformHttpEndpoint platformHttpEndpoint, org.apache.camel.Processor processor)
Creates a newConsumer
for the givenPlatformHttpEndpoint
.default int
getServerPort()
The port number the HTTP server is using, if possible to determine.
-
-
-
Method Detail
-
createConsumer
org.apache.camel.Consumer createConsumer(PlatformHttpEndpoint platformHttpEndpoint, org.apache.camel.Processor processor)
Creates a newConsumer
for the givenPlatformHttpEndpoint
.- Parameters:
platformHttpEndpoint
- thePlatformHttpEndpoint
to create a consumer forprocessor
- the Processor to pass to- Returns:
- a new
Consumer
-
getServerPort
default int getServerPort()
The port number the HTTP server is using, if possible to determine.
-
-