1using System.Collections.Generic;
2using System.Threading.Tasks;
21 this.Resource =
string.Empty;
22 this.Location =
string.Empty;
23 this.IncludeSubPaths =
false;
24 this.Permanent =
false;
48 [Page(7,
"Configuration")]
49 [Header(72,
"Resource:")]
50 [ToolTip(73,
"Resource being redirected.")]
57 [Page(7,
"Configuration")]
58 [Header(74,
"Location:")]
59 [ToolTip(75,
"Resource or URL being redirected to.")]
66 [Page(7,
"Configuration")]
67 [Header(76,
"Include sub-paths.")]
68 [ToolTip(77,
"If all resources beginning with this resource should also be redirected.")]
74 [Page(7,
"Configuration")]
75 [Header(78,
"Permanent redirection.")]
76 [ToolTip(79,
"If redirection is permanent and client can update its references.")]
77 [Text(
TextPosition.AfterField, 63,
"Note: Changes will take effect after broker has been restarted.")]
109 LinkedList<Parameter> Parameters =
new LinkedList<Parameter>();
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.
bool IncludeSubPaths
If sub-paths should be included in the redirection.
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
string Resource
Resource being redirected.
override string NodeId
ID of node.
bool Permanent
If redirection is permanent (true) or temporary (false).
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...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Redirection(GatewayConfigSource Source, WebServer Parent, string Resource, string Location, bool IncludeSubPaths, bool Permanent)
Defines a redirection.
string Location
Location client is redirected to.
Redirection()
Defines a redirection.
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.