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

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

public class Provide
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
Provide()
           
 
Method Summary
 void addPath(String path, byte[] content)
           
 boolean execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<Object,Object> ctx)
          Execute the Behaviour (e.g.
 void setLatency(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Provide

public Provide()
Method Detail

addPath

public void addPath(String path,
                    byte[] content)

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

setLatency

public void setLatency(int i)


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