1using System.Collections.Generic;
3using System.Threading.Tasks;
23 this.LocalResource =
string.Empty;
24 this.RemoteDomain =
string.Empty;
25 this.RemoteFolder =
string.Empty;
27 this.Encrypted =
false;
28 this.UseSession =
false;
29 this.TimeoutMs = 30000;
60 [Page(7,
"Configuration")]
61 [Header(85,
"Local Resource:")]
62 [ToolTip(86,
"Local Resource that will act as a reverse proxy.")]
69 [Page(7,
"Configuration")]
70 [Header(87,
"Remote Domain:")]
71 [ToolTip(88,
"Domain of web server to forward requests to.")]
78 [Page(7,
"Configuration")]
79 [Header(89,
"Remote Folder:")]
80 [ToolTip(90,
"Base folder on remote domain that requests will be forwarded to.")]
86 [Page(7,
"Configuration")]
87 [Header(91,
"Remote Port:")]
88 [ToolTip(92,
"Port number of remote domain that requests will be forwarded to.")]
96 [Page(7,
"Configuration")]
97 [Header(93,
"Use encryption.")]
98 [ToolTip(94,
"If forwarded requests are encrypted (HTTPS) or not (HTTP).")]
105 [Page(7,
"Configuration")]
106 [Header(95,
"Use proxy-session.")]
107 [ToolTip(96,
"If the proxy uses a session itself.")]
108 [Text(
TextPosition.AfterField, 97,
"Note: By making the proxy use a proxy-session itself, the broker can add SSO token information in forwarded requests, making underlying services aware of the currently logged in user identity.")]
114 [Page(7,
"Configuration")]
115 [Header(34,
"Timeout (ms):")]
116 [ToolTip(98,
"Timeout afforded to forwarded requests, in milliseconds, before they are assumed to have failed.")]
117 [Range(1, 120 * 1000)]
118 [Text(
TextPosition.AfterField, 63,
"Note: Changes will take effect after broker has been restarted.")]
150 LinkedList<Parameter> Parameters =
new LinkedList<Parameter>();
153 StringBuilder sb =
new StringBuilder();
Implements an HTTP server.
const int DefaultHttpPort
Default HTTP Port (80).
const int DefaultHttpsPort
Default HTTPS port (443).
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
async Task< Namespace > GetNamespaceAsync(string Name)
Gets the namespace object, given its name, if available.
Contains information about a namespace in a language.
Task< LanguageString > GetStringAsync(int Id)
Gets the string object, given its ID, if available.
Abstract base class for gateway configuration nodes.
virtual INode Parent
Parent Node, or null if a root node.
GatewayConfigSource Source
Source hosting the node.
Data source mirroring the Gateway.config file.
Defines a proxy resource to act as a reverse proxy.
bool Encrypted
If forwarded requests are encrypted (HTTPS) or not (HTTP).
string RemoteDomain
Location client is redirected to.
override string NodeId
ID of node.
bool UseSession
If forwarded requests are encrypted (HTTPS) or not (HTTP).
string RemoteFolder
If sub-paths should be included in the redirection.
ProxyResource()
Defines a proxy resource to act as a reverse proxy.
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
string LocalResource
Resource being redirected.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
int TimeoutMs
If redirection is permanent (true) or temporary (false).
ProxyResource(GatewayConfigSource Source, WebServer Parent, string LocalResource, string RemoteDomain, string RemoteFolder, int RemotePort, bool Encrypted, bool UseSession, int TimeoutMs)
Defines a proxy resource to act as a reverse proxy.
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts th...
int RemotePort
If redirection is permanent (true) or temporary (false).
Settings for the Web Server.
Boolean-valued parameter.
Tokens available in request.
Interface for nodes that are published through the concentrator interface.
TextPosition
Where the instructions are to be place.