org.sonatype.tests.http.server.jetty.behaviour
Class Redirect

java.lang.Object
  extended by org.sonatype.tests.http.server.jetty.behaviour.Redirect
All Implemented Interfaces:
Behaviour

public class Redirect
extends Object
implements Behaviour

Author:
Benjamin Hanzelmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.tests.http.server.api.Behaviour
Behaviour.Keys
 
Constructor Summary
Redirect()
           
Redirect(int count)
           
Redirect(String url)
           
Redirect(String url, int status)
           
Redirect(String pattern, String replace)
           
 
Method Summary
 boolean execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<Object,Object> ctx)
          Execute the Behaviour (e.g.
static Redirect redirect(String url)
           
static Redirect redirect(String url, int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redirect

public Redirect(String pattern,
                String replace)

Redirect

public Redirect()

Redirect

public Redirect(int count)

Redirect

public Redirect(String url)

Redirect

public Redirect(String url,
                int status)
Method Detail

redirect

public static Redirect redirect(String url)

redirect

public static Redirect redirect(String url,
                                int status)

execute

public boolean execute(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       Map<Object,Object> ctx)
                throws Exception
Description copied from interface: Behaviour
Execute the Behaviour (e.g. send data, redirect, sleep, ...).

Specified by:
execute in interface Behaviour
Returns:
true if execution of following behaviours should continue.
Throws:
Exception


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.