forked from apache/camel-quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix apache#357 Make netty-http dependent on netty and remove the dupl…
…ications
- Loading branch information
Showing
10 changed files
with
64 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[[netty]] | ||
= Netty HTTP Extension | ||
|
||
*Since Camel Quarkus 0.2* | ||
|
||
The Netty HTTP extension provides HTTP transport on top of the xref:extensions/netty.adoc[Netty extension]. | ||
|
||
Maven users will need to add the following dependency to their `pom.xml` for this extension. | ||
|
||
[source,xml] | ||
------------------------------------------------------------ | ||
<dependency> | ||
<groupId>org.apache.camel.quarkus</groupId> | ||
<artifactId>camel-quarkus-netty-http</artifactId> | ||
</dependency> | ||
------------------------------------------------------------ | ||
|
||
== Usage | ||
|
||
Please refer to the https://camel.apache.org/components/latest/netty-http-component.html[Netty HTTP] component page. | ||
|
||
Also read the xref:extensions/netty.adoc[Netty extension] page that may contain some Quarkus specific information. | ||
|
||
=== Example Usage | ||
|
||
[source,java] | ||
---- | ||
public class CamelRoute extends RouteBuilder { | ||
@Override | ||
public void configure() { | ||
/* consumer */ | ||
from("netty-http:http://0.0.0.0:8999/foo") | ||
.transform().constant("Netty Hello World"); | ||
/* /producer is proxying /foo */ | ||
from("netty-http:http://0.0.0.0:8999/producer") | ||
.to("netty-http:http://localhost:8999/foo"); | ||
} | ||
} | ||
---- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
...mel/quarkus/component/netty/http/runtime/SubstituteNettyServerBootstrapConfiguration.java
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...ache/camel/quarkus/component/netty/http/runtime/SubstituteNettyServerBossPoolBuilder.java
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...g/apache/camel/quarkus/component/netty/http/runtime/SubstituteNettyWorkerPoolBuilder.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters