RedirectConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. frontdoor. models. RouteConfiguration - com.
azure. resourcemanager. frontdoor. models. RedirectConfiguration
- com.
- com.
public final class RedirectConfiguration
extends RouteConfiguration
Describes Redirect Route.
Constructor Summary
Constructor | Description |
---|---|
RedirectConfiguration() |
Creates an instance of Redirect |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
customFragment()
Get the custom |
String |
customHost()
Get the custom |
String |
customPath()
Get the custom |
String |
customQueryString()
Get the custom |
Front |
redirectProtocol()
Get the redirect |
Front |
redirectType()
Get the redirect |
void |
validate()
Validates the instance. |
Redirect |
withCustomFragment(String customFragment)
Set the custom |
Redirect |
withCustomHost(String customHost)
Set the custom |
Redirect |
withCustomPath(String customPath)
Set the custom |
Redirect |
withCustomQueryString(String customQueryString)
Set the custom |
Redirect |
withRedirectProtocol(FrontDoorRedirectProtocol redirectProtocol)
Set the redirect |
Redirect |
withRedirectType(FrontDoorRedirectType redirectType)
Set the redirect |
Methods inherited from RouteConfiguration
Methods inherited from java.lang.Object
Constructor Details
RedirectConfiguration
public RedirectConfiguration()
Creates an instance of RedirectConfiguration class.
Method Details
customFragment
public String customFragment()
Get the customFragment property: Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.
Returns:
customHost
public String customHost()
Get the customHost property: Host to redirect. Leave empty to use the incoming host as the destination host.
Returns:
customPath
public String customPath()
Get the customPath property: The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.
Returns:
customQueryString
public String customQueryString()
Get the customQueryString property: The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.
Returns:
redirectProtocol
public FrontDoorRedirectProtocol redirectProtocol()
Get the redirectProtocol property: The protocol of the destination to where the traffic is redirected.
Returns:
redirectType
public FrontDoorRedirectType redirectType()
Get the redirectType property: The redirect type the rule will use when redirecting traffic.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
RedirectConfiguration.validate()withCustomFragment
public RedirectConfiguration withCustomFragment(String customFragment)
Set the customFragment property: Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.
Parameters:
Returns:
withCustomHost
public RedirectConfiguration withCustomHost(String customHost)
Set the customHost property: Host to redirect. Leave empty to use the incoming host as the destination host.
Parameters:
Returns:
withCustomPath
public RedirectConfiguration withCustomPath(String customPath)
Set the customPath property: The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.
Parameters:
Returns:
withCustomQueryString
public RedirectConfiguration withCustomQueryString(String customQueryString)
Set the customQueryString property: The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.
Parameters:
Returns:
withRedirectProtocol
public RedirectConfiguration withRedirectProtocol(FrontDoorRedirectProtocol redirectProtocol)
Set the redirectProtocol property: The protocol of the destination to where the traffic is redirected.
Parameters:
Returns:
withRedirectType
public RedirectConfiguration withRedirectType(FrontDoorRedirectType redirectType)
Set the redirectType property: The redirect type the rule will use when redirecting traffic.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for