config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/Redirect.java
public static Redirect temporary(final String location)
   {
      return new Redirect(location, RedirectType.TEMPORARY) {
         @Override
         public String toString()
         {
            return "Redirect.temporary(\"" + location + "\")";
         }
      };
   }
public static Redirect temporary(final String location)
   {
      return new Redirect(location, RedirectType.TEMPORARY) {
         @Override
         public String toString()
         {
            return "Redirect.temporary(\"" + location + "\")";
         }
      };
   }
Create an {@link Operation} that issues a temporary {@link Redirect} ( 302
{@link HttpServletResponse#SC_MOVED_TEMPORARILY} ) to the given location. If the given location is not the same as
{@link HttpServletRewrite#getAddress()}, this will change the browser {@link URL} and result in a new request.
<p>
Note that in order to redirect within the {@link ServletContext}, you must prepend the
{@link ServletContext#getContextPath()}.
<p>
For example:<br/>
<code>
Redirect.temporary(contextPath + "/example/location.html") <br>
</code>

<p>
The given location may be parameterized:
<p>
<code>
/store/global
/store/{category} <br>
/store/{category}/item/{itemId} <br>
...
</code>
<p>

@param location {@link ParameterizedPattern} specifying the target location.

@see ConfigurationRuleParameterBuilder#where(String)