Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Apache Camel would fit the bill perfectly. Camel is a lightweight framework for doing exactly this kind of application integration. I've used it to do some similar http proxying in the past.</p> <p>Camel uses a very expressive DSL for defining routes between endpoint. In your case you want to stand up a server that is visible to all the client machines at your customer site and whatever requests it receives you want to route 'from' this endpoint 'to' your secure endpoint via https. </p> <p>You'll need to create a simple class that defines the route. It should extend RouteBuilder and override the configure method</p> <pre><code>public class WebServiceProxy extends RouteBuilder { public void configure() { from("jetty:http://0.0.0.0:8080/myServicePath") .to("https://mysecureserver/myServicePath"); } } </code></pre> <p>Add this to a Camel context and you'll be good to go. </p> <pre><code>CamelContext context = new DefaultCamelContext(); context.addRoute(new WebServiceProxy()); context.start(); </code></pre> <p>This route will create a webserver using jetty bound to 8080 on all local interfaces. Any requests sent to /myServicePath will get routed directly to your webservice defined by the uri <code>https://mysecureserver/myServicePath</code>. You define the endpoints using simple uris and the dsl and camel takes care of the heavy lifting.</p> <p>You may need to configure a keystore with your certs in in and make it available to the http component. Post again if you've trouble here ;)</p> <p>I'd read the camel docs for the http component for more details, check the unit tests for the project too as they are chock full of examples and best practices.</p> <p>HTH.</p> <p>FYI: To have the http component use your keystore, you'll need to set the following properties</p> <pre><code>System.setProperty("javax.net.ssl.trustStore", "path/to/keystore"); System.setProperty("javax.net.ssl.trustStorePassword", "keystore-password"); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload