public class

RoutingRule

extends Object
implements Serializable
java.lang.Object
   ↳ org.mule.module.s3.model.RoutingRule

Class Overview

Container for one routing rule that identifies a condition and a redirect that applies when the condition is met.

Summary

Constants
long serialVersionUID
Fields
RoutingRuleCondition condition The condition that must be met for the specified redirect to apply.
RedirectRule redirect Container for redirect information.
Public Constructors
RoutingRule()
Public Methods
RoutingRuleCondition getCondition()
Return the condition that must be met for the specified redirect to apply.
RedirectRule getRedirect()
Return the redirect information.
void setCondition(RoutingRuleCondition condition)
Set the condition that must be met for the specified redirect to apply.
void setRedirect(RedirectRule redirect)
Set the redirect information.
RoutingRule withCondition(RoutingRuleCondition condition)
Set the condition that must be met for the specified redirect to apply and returns a reference to this object(RoutingRule) for method chaining.
RoutingRule withRedirect(RedirectRule redirect)
Set the redirect information and returns a reference to this object(RoutingRule) for method chaining.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 5092805089662940069 (0x46ad473f07a933a5)

Fields

RoutingRuleCondition condition

The condition that must be met for the specified redirect to apply. For example if request is for pages in the /docs folder, redirect to the /documents folder or if request results in HTTP error 4xx, redirect request to another host where you might process the error.

RedirectRule redirect

Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.

Public Constructors

public RoutingRule ()

Public Methods

public RoutingRuleCondition getCondition ()

Return the condition that must be met for the specified redirect to apply.

public RedirectRule getRedirect ()

Return the redirect information.

public void setCondition (RoutingRuleCondition condition)

Set the condition that must be met for the specified redirect to apply.

Parameters
condition

public void setRedirect (RedirectRule redirect)

Set the redirect information.

Parameters
redirect

public RoutingRule withCondition (RoutingRuleCondition condition)

Set the condition that must be met for the specified redirect to apply and returns a reference to this object(RoutingRule) for method chaining.

Parameters
condition

public RoutingRule withRedirect (RedirectRule redirect)

Set the redirect information and returns a reference to this object(RoutingRule) for method chaining.

Parameters
redirect