Namespace: OpenEdge.Web.Logging
Type: Class WebRequestTokenResolver
Parent Classes:
Inherits: Progress.Lang.Object


/* *************************************************************************************************************************
Copyright (c) 2022 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:WebRequestTokenResolver
Purpose:Resolves tokens for web.*
Author(s):pjudge
Created:2019-12-13
Notes:* Group args for WEB
WEBAPP["." webapp-type]
webapp-type
NAME:the context/webapp name (default)
PATH:the fully-qualified path of the webapp
URI:The complete request URI
URI.TEMPLATE:The URI template used to select a webhandler
URI.HOST:The host to which the request was made
URI.PORT:The port to which the request was made
VERB }
METHOD:the http method of the request
SCHEME:the scheme of the request (HTTP or HTTPS)
TRANSPORT }
TPT:the transport, including path. So generally /web
SERVICE }
SVC:PATH.1 or PathInfo[1]. The service name is, by convention, the first path segment after
the transport
PATH:The path after the transport
PATH.PARAM:Comma-separated list of the path parameter names, plus TEMPLATE, FINAL_MATCH_GROUP
PATH.<param>:value for the path parameter named <param>. Blank if the <param> does not exist
PATH.<n>:value of the nth path segment of the PathInfo (after the transport)
HDR.<name>:the header value for <name>
COOKIE.<name>: the complete cookie value for <name>
QRY.<name>:The query string value of <name>
CGI:a CSV list of the CGI variable names
CGI.<name> }
CTX.<name>:The value of the CGI variable
REMOTE"." remote-client-data
remote-client-data
HOST:The hostname of the remote client
PORT:The port of the remote client
ADDRESS:The IP address of the remote client
LOCAL"." local-server-data These values may differ from the request URI due to proxies or whatnot
local-server-data
HOST:The hostname of this instance
PORT:The port of this instance
ADDRESS:The IP address of this instance
<value>:If none of the above, treat as CGI.<name>
/* Default constructor.
The constructor is PRIVATE to prevent any instantiation of this class - it is intended
to only have static members .



Method Summary
  Options Name Purpose
  TokenResolvedHandler (Object, TokenResolverEventArgs) /* Event published after a token is resolved by this resolver. Allows a listener to override the value */

Constructor Summary
  Options Name Purpose
  WebRequestTokenResolver () /* Default constructor. The constructor is PRIVATE to prevent any instantiation of this class - it is intended to only have static members .*/

Method Detail
Top

TokenResolvedHandler (Object, TokenResolverEventArgs)

/* Event published after a token is resolved by this resolver. Allows a listener to override the value
Parameters:
pSender Progress.Lang.Object
 
pArgs OpenEdge.Core.Util.TokenResolverEventArgs
 


Constructor Detail
Top

WebRequestTokenResolver ()

/* Default constructor.
The constructor is PRIVATE to prevent any instantiation of this class - it is intended
to only have static members .