org.sonatype.tests.http.server.fluent
Class Behaviours

java.lang.Object
  extended by org.sonatype.tests.http.server.fluent.Behaviours

public class Behaviours
extends Object

Since:
1.0

Constructor Summary
Behaviours()
           
 
Method Summary
static Content content(String content)
           
static Content content(String content, String type)
           
static ErrorBehaviour error(int code)
           
static ErrorBehaviour error(int code, String msg)
           
static Content file(File content)
           
static Content file(File content, String type)
           
static Get get(File root)
           
static Pause pause(org.sonatype.sisu.goodies.common.Time time)
           
static Record record()
           
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

Behaviours

public Behaviours()
Method Detail

redirect

public static Redirect redirect(String url)

redirect

public static Redirect redirect(String url,
                                int status)

error

public static ErrorBehaviour error(int code)

error

public static ErrorBehaviour error(int code,
                                   String msg)

pause

public static Pause pause(org.sonatype.sisu.goodies.common.Time time)

content

public static Content content(String content)

content

public static Content content(String content,
                              String type)

get

public static Get get(File root)

file

public static Content file(File content)

file

public static Content file(File content,
                           String type)

record

public static Record record()


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