Interface PlatformHttpEngine
public interface PlatformHttpEngine
An abstraction of an HTTP Server engine on which HTTP endpoints can be deployed.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.Consumer
createConsumer
(PlatformHttpEndpoint platformHttpEndpoint, org.apache.camel.Processor processor) Creates a newConsumer
for the givenPlatformHttpEndpoint
.default int
The port number the HTTP server is using, if possible to determine.
-
Method Details
-
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.
-