/AWS1/CL_EL2REDIRACTIONCONFIG¶
Information about a redirect action.
A URI consists of the following components: protocol://hostname:port/path?query. You must modify at least one of the following components to avoid a redirect loop: protocol, hostname, port, or path. Any components that you do not modify retain their original values.
You can reuse URI components using the following reserved keywords:
-
#{protocol}
-
#{host}
-
#{port}
-
#{path} (the leading "/" is removed)
-
#{query}
For example, you can change the path to "/new/#{path}", the hostname to "example.#{host}", or the query to "#{query}&value=xyz".
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_statuscode TYPE /AWS1/EL2REDIRACTSTATCODEENUM /AWS1/EL2REDIRACTSTATCODEENUM¶
The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary (HTTP 302).
Optional arguments:¶
iv_protocol TYPE /AWS1/EL2REDIRACTIONPROTOCOL /AWS1/EL2REDIRACTIONPROTOCOL¶
The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You can't redirect HTTPS to HTTP.
iv_port TYPE /AWS1/EL2REDIRECTACTIONPORT /AWS1/EL2REDIRECTACTIONPORT¶
The port. You can specify a value from 1 to 65535 or #{port}.
iv_host TYPE /AWS1/EL2REDIRECTACTIONHOST /AWS1/EL2REDIRECTACTIONHOST¶
The hostname. This component is not percent-encoded. The hostname can contain
{host}.¶
iv_path TYPE /AWS1/EL2REDIRECTACTIONPATH /AWS1/EL2REDIRECTACTIONPATH¶
The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.
iv_query TYPE /AWS1/EL2REDIRECTACTIONQUERY /AWS1/EL2REDIRECTACTIONQUERY¶
The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.
Queryable Attributes¶
Protocol¶
The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You can't redirect HTTPS to HTTP.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PROTOCOL() |
Getter for PROTOCOL, with configurable default |
ASK_PROTOCOL() |
Getter for PROTOCOL w/ exceptions if field has no value |
HAS_PROTOCOL() |
Determine if PROTOCOL has a value |
Port¶
The port. You can specify a value from 1 to 65535 or #{port}.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PORT() |
Getter for PORT, with configurable default |
ASK_PORT() |
Getter for PORT w/ exceptions if field has no value |
HAS_PORT() |
Determine if PORT has a value |
Host¶
The hostname. This component is not percent-encoded. The hostname can contain
{host}.¶
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_HOST() |
Getter for HOST, with configurable default |
ASK_HOST() |
Getter for HOST w/ exceptions if field has no value |
HAS_HOST() |
Determine if HOST has a value |
Path¶
The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PATH() |
Getter for PATH, with configurable default |
ASK_PATH() |
Getter for PATH w/ exceptions if field has no value |
HAS_PATH() |
Determine if PATH has a value |
Query¶
The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_QUERY() |
Getter for QUERY, with configurable default |
ASK_QUERY() |
Getter for QUERY w/ exceptions if field has no value |
HAS_QUERY() |
Determine if QUERY has a value |
StatusCode¶
The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary (HTTP 302).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STATUSCODE() |
Getter for STATUSCODE, with configurable default |
ASK_STATUSCODE() |
Getter for STATUSCODE w/ exceptions if field has no value |
HAS_STATUSCODE() |
Determine if STATUSCODE has a value |