public class

RoutingRuleCondition

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

Class Overview

A container for describing a 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.

Summary

Constants
long serialVersionUID
Fields
String httpErrorCodeReturnedEquals The HTTP error code when the redirect is applied.
String keyPrefixEquals The object key name prefix when the redirect is applied.
Public Constructors
RoutingRuleCondition()
Public Methods
String getHttpErrorCodeReturnedEquals()
Return the HTTP error code when the redirect is applied.
String getKeyPrefixEquals()
Return the object key name prefix when the redirect is applied.
void setHttpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied.
void setKeyPrefixEquals(String keyPrefixEquals)
Set the object key name prefix when the redirect is applied.
RoutingRuleCondition withHttpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
RoutingRuleCondition withKeyPrefixEquals(String keyPrefixEquals)
Set the object key name prefix when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 4032473193100587506 (0x37f63901110bb1f2)

Fields

String httpErrorCodeReturnedEquals

The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.

String keyPrefixEquals

The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix docs/, the key prefix will be /docs, which identifies all objects in the docs/ folder.

Public Constructors

public RoutingRuleCondition ()

Public Methods

public String getHttpErrorCodeReturnedEquals ()

Return the HTTP error code when the redirect is applied.

public String getKeyPrefixEquals ()

Return the object key name prefix when the redirect is applied.

public void setHttpErrorCodeReturnedEquals (String httpErrorCodeReturnedEquals)

Set the HTTP error code when the redirect is applied.

Parameters
httpErrorCodeReturnedEquals

public void setKeyPrefixEquals (String keyPrefixEquals)

Set the object key name prefix when the redirect is applied.

Parameters
keyPrefixEquals

public RoutingRuleCondition withHttpErrorCodeReturnedEquals (String httpErrorCodeReturnedEquals)

Set the HTTP error code when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.

Parameters
httpErrorCodeReturnedEquals

public RoutingRuleCondition withKeyPrefixEquals (String keyPrefixEquals)

Set the object key name prefix when the redirect is applied and returns a reference to this object(RoutingRuleCondition) for method chaining.

Parameters
keyPrefixEquals