Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
o add fluent get(path)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabcos committed Nov 23, 2011
1 parent 5e452d3 commit 4fc33de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package org.sonatype.tests.http.server.fluent;

import java.io.File;

import org.sonatype.sisu.goodies.common.Time;
import org.sonatype.tests.http.server.jetty.behaviour.Content;
import org.sonatype.tests.http.server.jetty.behaviour.ErrorBehaviour;
import org.sonatype.tests.http.server.jetty.behaviour.Pause;
import org.sonatype.tests.http.server.jetty.behaviour.Redirect;
import org.sonatype.tests.http.server.jetty.behaviour.filesystem.Get;

/**
* @since 1.0
Expand Down Expand Up @@ -42,4 +45,9 @@ public static Content content( String content, String type )
return Content.content( content, type );
}

public static Get get( File root )
{
return Get.get( root );
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public void setPath( String fpath )
this.fpath = fpath;
}

public static Get get( File root )
{
return new Get( root.getAbsolutePath() );
}

public Get()
{
super();
Expand Down

0 comments on commit 4fc33de

Please sign in to comment.