This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to latest Spring and other dependency versions
- Updated to latest Spring and other dependency versions - Changes in HTTP Connector required changing the way we select HTTP or HTTPS as the protocol. Now we must have separate flows and listeners for each protocol. The existing listener flows are set to HTTPS. New HTTP flows are added that reference to the HTTPS flows. - The HTTP flows can be stopped via property - Added an ignoreFile list property for resource files a browser asks for that don't exist in the app, like "favicon.ico". Not required but now doesn't put a "resource not found" exception in the flow.
- Loading branch information
1 parent
96f1be0
commit 4d80e93
Showing
10 changed files
with
152 additions
and
87 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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" | ||
xmlns="http://www.mulesoft.org/schema/mule/core" | ||
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd"> | ||
|
||
<flow name="http-ui" doc:id="26329426-60ba-49ad-ae04-ac3bfb607dea" initialState="${httpListener}"> | ||
<http:listener doc:name="Listener" | ||
doc:id="945b4a80-dcdd-460e-a520-24f510d84be8" config-ref="http" | ||
path="/*" outputMimeType="text/html" /> | ||
<flow-ref doc:name="ui" | ||
doc:id="e74273e3-e138-414c-b6bf-58728820b208" name="ui" /> | ||
</flow> | ||
|
||
<flow name="http-net-tools-main" initialState="${httpListener}"> | ||
<http:listener config-ref="http" path="/api/*"> | ||
<http:response | ||
statusCode="#[vars.httpStatus default 200]"> | ||
<http:headers>#[vars.outboundHeaders default {}]</http:headers> | ||
</http:response> | ||
<http:error-response | ||
statusCode="#[vars.httpStatus default 500]"> | ||
<http:body>#[payload]</http:body> | ||
<http:headers>#[vars.outboundHeaders default {}]</http:headers> | ||
</http:error-response> | ||
</http:listener> | ||
<flow-ref doc:name="net-tools-main" doc:id="7b7d5435-a4ae-4c67-9159-cf238285bd32" name="net-tools-main"/> | ||
|
||
</flow> | ||
</mule> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<types:mule xmlns:types="http://www.mulesoft.org/schema/mule/types"> | ||
<types:catalog/> | ||
</types:mule> |
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,5 @@ | ||
%dw 2.0 | ||
output application/java | ||
import substringAfterLast from dw::core::Strings | ||
--- | ||
substringAfterLast(attributes.requestPath, ".") default "" |
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,15 @@ | ||
%dw 2.0 | ||
output text/plain | ||
import substringAfterLast from dw::core::Strings | ||
|
||
var ignoreFiles = p("ignoreFiles") splitBy "," | ||
var uriPath = attributes.requestPath | ||
var path = if ("/" == uriPath) | ||
"web/index.html" | ||
else | ||
"web" ++ uriPath | ||
--- | ||
if (ignoreFiles contains substringAfterLast(uriPath, "/")) | ||
null | ||
else | ||
readUrl("classpath://" ++ path, "text/plain") |
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